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.
26 lines
718 B
PHTML
26 lines
718 B
PHTML
4 years ago
|
<?php
|
||
|
|
||
|
namespace Engelsystem\Test\Unit\Controllers;
|
||
|
|
||
|
use Engelsystem\Controllers\HealthController;
|
||
|
use Engelsystem\Http\Response;
|
||
|
use Engelsystem\Test\Unit\TestCase;
|
||
|
use PHPUnit\Framework\MockObject\MockObject;
|
||
|
|
||
|
class HealthControllerTest extends TestCase
|
||
|
{
|
||
|
/**
|
||
|
* @covers \Engelsystem\Controllers\HealthController::__construct
|
||
|
* @covers \Engelsystem\Controllers\HealthController::index
|
||
|
*/
|
||
|
public function testIndex()
|
||
|
{
|
||
|
/** @var Response|MockObject $response */
|
||
|
$response = $this->createMock(Response::class);
|
||
|
$this->setExpects($response, 'withContent', ['Ok'], $response);
|
||
|
|
||
|
$controller = new HealthController($response);
|
||
|
$controller->index();
|
||
|
}
|
||
|
}
|