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
578 B
PHTML
26 lines
578 B
PHTML
6 years ago
|
<?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());
|
||
|
}
|
||
|
}
|