2021-06-13 05:57:10 +02:00
|
|
|
<?php
|
|
|
|
|
2022-03-17 01:04:40 +01:00
|
|
|
namespace Functional;
|
|
|
|
|
2021-06-13 05:57:10 +02:00
|
|
|
class Api_Stations_MountsCest extends CestAbstract
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @before setupComplete
|
|
|
|
* @before login
|
|
|
|
*/
|
2022-03-17 01:04:40 +01:00
|
|
|
public function manageMounts(\FunctionalTester $I): void
|
2021-06-13 05:57:10 +02:00
|
|
|
{
|
|
|
|
$I->wantTo('Manage station mount points via API.');
|
|
|
|
|
|
|
|
$station = $this->getTestStation();
|
|
|
|
|
|
|
|
$this->testCrudApi(
|
|
|
|
$I,
|
|
|
|
'/api/station/' . $station->getId() . '/mounts',
|
|
|
|
[
|
|
|
|
'name' => '/radio.mp3',
|
|
|
|
'enable_autodj' => true,
|
|
|
|
'autodj_format' => 'mp3',
|
|
|
|
'autodj_bitrate' => 128,
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'name' => '/music.mp3',
|
|
|
|
'enable_autodj' => false,
|
|
|
|
]
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|