AzuraCast/tests/functional/Api_Admin_StorageLocationsC...

27 lines
693 B
PHP

<?php
class Api_Admin_StorageLocationsCest extends CestAbstract
{
/**
* @before setupComplete
* @before login
*/
public function manageStorageLocations(FunctionalTester $I): void
{
$I->wantTo('Manage storage locations via API.');
$this->testCrudApi(
$I,
'/api/admin/storage_locations',
[
'type' => \App\Entity\StorageLocation::TYPE_STATION_MEDIA,
'adapter' => \App\Entity\StorageLocation::ADAPTER_LOCAL,
'path' => '/tmp/test_storage_location',
],
[
'path' => '/tmp/test_storage_location_2',
]
);
}
}