Unprefix tests and fix mount point test.
This commit is contained in:
parent
ee216180a5
commit
4a529c9003
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
class B01_Admin_ApiKeysCest extends CestAbstract
|
||||
class Admin_ApiKeysCest extends CestAbstract
|
||||
{
|
||||
/**
|
||||
* @before setupComplete
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
class B03_Admin_DebugCest extends CestAbstract
|
||||
class Admin_DebugCest extends CestAbstract
|
||||
{
|
||||
/**
|
||||
* @before setupComplete
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
class B00_Admin_IndexCest extends CestAbstract
|
||||
class Admin_IndexCest extends CestAbstract
|
||||
{
|
||||
/**
|
||||
* @before setupComplete
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
class B02_Admin_RecordsCest extends CestAbstract
|
||||
class Admin_RecordsCest extends CestAbstract
|
||||
{
|
||||
/**
|
||||
* @before setupComplete
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
class D03_Api_Admin_CustomFieldsCest extends CestAbstract
|
||||
class Api_Admin_CustomFieldsCest extends CestAbstract
|
||||
{
|
||||
/**
|
||||
* @before setupComplete
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
class D04_Api_Admin_StationsCest extends CestAbstract
|
||||
class Api_Admin_StationsCest extends CestAbstract
|
||||
{
|
||||
/**
|
||||
* @before setupComplete
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
class D05_Api_Admin_UsersCest extends CestAbstract
|
||||
class Api_Admin_UsersCest extends CestAbstract
|
||||
{
|
||||
/**
|
||||
* @before setupComplete
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
class D00_Api_IndexCest extends CestAbstract
|
||||
class Api_IndexCest extends CestAbstract
|
||||
{
|
||||
/**
|
||||
* @before setupComplete
|
||||
|
@ -10,7 +10,8 @@ class D00_Api_IndexCest extends CestAbstract
|
|||
$I->wantTo('Check basic API functions.');
|
||||
|
||||
$I->sendGET('/api/status');
|
||||
$I->seeResponseContainsJson([
|
||||
$I->seeResponseContainsJson(
|
||||
[
|
||||
'online' => true,
|
||||
]);
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
use App\Entity;
|
||||
|
||||
class D02_Api_RequestsCest extends CestAbstract
|
||||
class Api_RequestsCest extends CestAbstract
|
||||
{
|
||||
/**
|
||||
* @before setupComplete
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
class D01_Api_StationsCest extends CestAbstract
|
||||
class Api_StationsCest extends CestAbstract
|
||||
{
|
||||
/**
|
||||
* @before setupComplete
|
|
@ -1,36 +0,0 @@
|
|||
<?php
|
||||
|
||||
class C03_Station_MountPointsCest extends CestAbstract
|
||||
{
|
||||
/**
|
||||
* @before setupComplete
|
||||
* @before login
|
||||
*/
|
||||
public function editMountPoints(FunctionalTester $I): void
|
||||
{
|
||||
$I->wantTo('Create a station mount point.');
|
||||
|
||||
$testStation = $this->getTestStation();
|
||||
$station_id = $testStation->getId();
|
||||
|
||||
$I->amOnPage('/station/' . $station_id . '/mounts');
|
||||
|
||||
$I->see('Mount Points');
|
||||
$I->click('Add Mount Point', '#content');
|
||||
|
||||
$I->submitForm('.form', [
|
||||
'name' => '/test.mp3',
|
||||
'display_name' => 'Test MP3',
|
||||
]);
|
||||
|
||||
$I->seeCurrentUrlEquals('/station/' . $station_id . '/mounts');
|
||||
|
||||
$I->see('Test MP3');
|
||||
|
||||
$I->click(\Codeception\Util\Locator::lastElement('.btn-danger'));
|
||||
|
||||
$I->seeCurrentUrlEquals('/station/' . $station_id . '/mounts');
|
||||
|
||||
$I->dontSee('Test MP3');
|
||||
}
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
class A03_Frontend_ErrorCest extends CestAbstract
|
||||
class Frontend_ErrorCest extends CestAbstract
|
||||
{
|
||||
public function seeErrorPages(FunctionalTester $I): void
|
||||
{
|
||||
|
@ -10,4 +10,4 @@ class A03_Frontend_ErrorCest extends CestAbstract
|
|||
$I->seeResponseCodeIs(404);
|
||||
$I->see('404');
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
class A02_Frontend_IndexCest extends CestAbstract
|
||||
class Frontend_IndexCest extends CestAbstract
|
||||
{
|
||||
/**
|
||||
* @before setupComplete
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
class A01_Frontend_ProfileCest extends CestAbstract
|
||||
class Frontend_ProfileCest extends CestAbstract
|
||||
{
|
||||
/**
|
||||
* @before login
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
class A04_Frontend_PublicCest extends CestAbstract
|
||||
class Frontend_PublicCest extends CestAbstract
|
||||
{
|
||||
/**
|
||||
* @before setupComplete
|
||||
|
@ -16,4 +16,4 @@ class A04_Frontend_PublicCest extends CestAbstract
|
|||
$I->seeCurrentUrlEquals('/public/' . $testStation->getId());
|
||||
$I->see($testStation->getName());
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
class A00_Frontend_SetupCest extends CestAbstract
|
||||
class Frontend_SetupCest extends CestAbstract
|
||||
{
|
||||
/**
|
||||
* @before setupIncomplete
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
use App\Entity;
|
||||
|
||||
class C05_Station_AutomationCest extends CestAbstract
|
||||
class Station_AutomationCest extends CestAbstract
|
||||
{
|
||||
/**
|
||||
* @before setupComplete
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
class C02_Station_MediaCest extends CestAbstract
|
||||
class Station_MediaCest extends CestAbstract
|
||||
{
|
||||
/**
|
||||
* @before setupComplete
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
class Station_MountPointsCest extends CestAbstract
|
||||
{
|
||||
/**
|
||||
* @before setupComplete
|
||||
* @before login
|
||||
*/
|
||||
public function editMountPoints(FunctionalTester $I): void
|
||||
{
|
||||
$testStation = $this->getTestStation();
|
||||
$station_id = $testStation->getId();
|
||||
|
||||
$I->amOnPage('/station/' . $station_id . '/mounts');
|
||||
|
||||
$I->see('Mount Points');
|
||||
}
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
class C03_Station_PlaylistsCest extends CestAbstract
|
||||
class Station_PlaylistsCest extends CestAbstract
|
||||
{
|
||||
/**
|
||||
* @before setupComplete
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
class C00_Station_ProfileCest extends CestAbstract
|
||||
class Station_ProfileCest extends CestAbstract
|
||||
{
|
||||
/**
|
||||
* @before setupComplete
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
class C03_Station_RemoteRelaysCest extends CestAbstract
|
||||
class Station_RemoteRelaysCest extends CestAbstract
|
||||
{
|
||||
/**
|
||||
* @before setupComplete
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
class C04_Station_ReportsCest extends CestAbstract
|
||||
class Station_ReportsCest extends CestAbstract
|
||||
{
|
||||
/**
|
||||
* @before setupComplete
|
Loading…
Reference in New Issue