4
0
mirror of https://github.com/AzuraCast/AzuraCast.git synced 2024-06-19 23:47:05 +00:00
AzuraCast/tests/Functional/Api_Stations_ReportsCest.php

31 lines
693 B
PHP
Raw Normal View History

2021-06-13 23:31:39 +00:00
<?php
namespace Functional;
2021-06-13 23:31:39 +00:00
class Api_Stations_ReportsCest extends CestAbstract
{
/**
* @before setupComplete
* @before login
*/
public function viewReports(\FunctionalTester $I): void
2021-06-13 23:31:39 +00:00
{
$I->wantTo('View various station reports via API.');
$station = $this->getTestStation();
$uriBase = '/api/station/' . $station->getId();
$I->sendGet($uriBase . '/reports/overview/charts');
$I->seeResponseCodeIs(200);
$I->sendGet($uriBase . '/reports/overview/best-and-worst');
$I->seeResponseCodeIs(200);
$I->sendGet($uriBase . '/reports/overview/most-played');
$I->seeResponseCodeIs(200);
}
}