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.
engelsystem/tests/Unit/Controllers/BaseControllerTest.php

28 lines
650 B
PHTML

<?php
namespace Engelsystem\Test\Unit\Controllers;
use Engelsystem\Test\Unit\Controllers\Stub\ControllerImplementation;
use PHPUnit\Framework\TestCase;
class BaseControllerTest extends TestCase
{
/**
* @covers \Engelsystem\Controllers\BaseController::getPermissions
*/
public function testGetPermissions()
{
$controller = new ControllerImplementation();
$this->assertEquals([
'foo',
'lorem' => [
'ipsum',
'dolor',
],
], $controller->getPermissions());
$this->assertTrue(method_exists($controller, 'setValidator'));
}
}