Update tests to reflect new URIs.

This commit is contained in:
Buster "Silver Eagle" Neece 2020-03-01 10:40:15 -06:00
parent 0939599532
commit d2d5796cf6
No known key found for this signature in database
GPG key ID: 6D9E12FF03411F4E
2 changed files with 53 additions and 48 deletions

View file

@ -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');
}
}

View 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');
}
}