Update tests to reflect new URIs.
This commit is contained in:
parent
0939599532
commit
d2d5796cf6
2 changed files with 53 additions and 48 deletions
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
|
||||
class B00_Admin_IndexCest extends CestAbstract
|
||||
{
|
||||
/**
|
||||
|
@ -16,52 +17,4 @@ class B00_Admin_IndexCest extends CestAbstract
|
|||
$I->see('Users');
|
||||
$I->see('Stations');
|
||||
}
|
||||
|
||||
/**
|
||||
* @before setupComplete
|
||||
* @before login
|
||||
*/
|
||||
public function runNowPlayingSync(FunctionalTester $I)
|
||||
{
|
||||
$I->wantTo('Run now-playing synchronization task.');
|
||||
|
||||
$I->amOnPage('/admin/sync/nowplaying');
|
||||
$I->seeInSource('Sync Task Output');
|
||||
}
|
||||
|
||||
/**
|
||||
* @before setupComplete
|
||||
* @before login
|
||||
*/
|
||||
public function runShortSync(FunctionalTester $I)
|
||||
{
|
||||
$I->wantTo('Run short synchronization task.');
|
||||
|
||||
$I->amOnPage('/admin/sync/short');
|
||||
$I->seeInSource('Sync Task Output');
|
||||
}
|
||||
|
||||
/**
|
||||
* @before setupComplete
|
||||
* @before login
|
||||
*/
|
||||
public function runMediumSync(FunctionalTester $I)
|
||||
{
|
||||
$I->wantTo('Run medium synchronization task.');
|
||||
|
||||
$I->amOnPage('/admin/sync/medium');
|
||||
$I->seeInSource('Sync Task Output');
|
||||
}
|
||||
|
||||
/**
|
||||
* @before setupComplete
|
||||
* @before login
|
||||
*/
|
||||
public function runLongSync(FunctionalTester $I)
|
||||
{
|
||||
$I->wantTo('Run long synchronization task.');
|
||||
|
||||
$I->amOnPage('/admin/sync/long');
|
||||
$I->seeInSource('Sync Task Output');
|
||||
}
|
||||
}
|
||||
|
|
52
tests/functional/B03_Admin_DebugCest.php
Normal file
52
tests/functional/B03_Admin_DebugCest.php
Normal file
|
@ -0,0 +1,52 @@
|
|||
<?php
|
||||
|
||||
class B03_Admin_DebugCest extends CestAbstract
|
||||
{
|
||||
/**
|
||||
* @before setupComplete
|
||||
* @before login
|
||||
*/
|
||||
public function runNowPlayingSync(FunctionalTester $I)
|
||||
{
|
||||
$I->wantTo('Run now-playing synchronization task.');
|
||||
|
||||
$I->amOnPage('/admin/debug/sync/nowplaying');
|
||||
$I->seeInSource('Sync Task Output');
|
||||
}
|
||||
|
||||
/**
|
||||
* @before setupComplete
|
||||
* @before login
|
||||
*/
|
||||
public function runShortSync(FunctionalTester $I)
|
||||
{
|
||||
$I->wantTo('Run short synchronization task.');
|
||||
|
||||
$I->amOnPage('/admin/debug/sync/short');
|
||||
$I->seeInSource('Sync Task Output');
|
||||
}
|
||||
|
||||
/**
|
||||
* @before setupComplete
|
||||
* @before login
|
||||
*/
|
||||
public function runMediumSync(FunctionalTester $I)
|
||||
{
|
||||
$I->wantTo('Run medium synchronization task.');
|
||||
|
||||
$I->amOnPage('/admin/debug/sync/medium');
|
||||
$I->seeInSource('Sync Task Output');
|
||||
}
|
||||
|
||||
/**
|
||||
* @before setupComplete
|
||||
* @before login
|
||||
*/
|
||||
public function runLongSync(FunctionalTester $I)
|
||||
{
|
||||
$I->wantTo('Run long synchronization task.');
|
||||
|
||||
$I->amOnPage('/admin/debug/sync/long');
|
||||
$I->seeInSource('Sync Task Output');
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue