engelsystem/tests/Unit/Controllers/BaseControllerTest.php

26 lines
578 B
PHP
Raw Normal View History

2018-11-14 02:17:27 +01:00
<?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());
}
}