Add new stations API endpoint functional test.
This commit is contained in:
parent
45453b90bc
commit
43cedce91c
|
@ -0,0 +1,21 @@
|
|||
<?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,
|
||||
]);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue