Metrics: Added controller feature test
parent
d27bcabc8b
commit
74cf8d1e69
@ -0,0 +1,23 @@
|
|||||||
|
<?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]);
|
||||||
|
|
||||||
|
/** @var Controller $controller */
|
||||||
|
$controller = app()->make(Controller::class);
|
||||||
|
$response = $controller->metrics();
|
||||||
|
|
||||||
|
$this->assertEquals(200, $response->getStatusCode());
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue