You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
648 B
PHP
24 lines
648 B
PHP
<?php
|
|
|
|
namespace Engelsystem\Test\Feature\Controllers\Metrics;
|
|
|
|
use Engelsystem\Controllers\Metrics\Controller;
|
|
use Engelsystem\Test\Feature\ApplicationFeatureTest;
|
|
|
|
class ControllerTest extends ApplicationFeatureTest
|
|
{
|
|
/**
|
|
* @covers \Engelsystem\Controllers\Metrics\Controller::metrics
|
|
*/
|
|
public function testMetrics()
|
|
{
|
|
config(['api_key' => null, 'metrics' => ['work' => [60 * 60], 'voucher' => [1]]]);
|
|
|
|
/** @var Controller $controller */
|
|
$controller = app()->make(Controller::class);
|
|
$response = $controller->metrics();
|
|
|
|
$this->assertEquals(200, $response->getStatusCode());
|
|
}
|
|
}
|