mirror of
https://github.com/AzuraCast/AzuraCast.git
synced 2024-06-12 12:24:33 +00:00
22 lines
525 B
PHP
22 lines
525 B
PHP
<?php
|
|
class D01_Api_StationsCest extends CestAbstract
|
|
{
|
|
/**
|
|
* @before setupComplete
|
|
*/
|
|
public function checkApiStation(FunctionalTester $I)
|
|
{
|
|
$I->wantTo('Check station API endpoints.');
|
|
|
|
$I->sendGET('/api/stations');
|
|
$I->seeResponseContainsJson([
|
|
'name' => $this->test_station->name,
|
|
]);
|
|
|
|
$I->sendGET('/api/stations/'.$this->test_station->id);
|
|
$I->seeResponseContainsJson([
|
|
'name' => $this->test_station->name,
|
|
]);
|
|
}
|
|
}
|