diff options
Diffstat (limited to 'tests/Unit/Controllers/BaseControllerTest.php')
-rw-r--r-- | tests/Unit/Controllers/BaseControllerTest.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/Unit/Controllers/BaseControllerTest.php b/tests/Unit/Controllers/BaseControllerTest.php new file mode 100644 index 00000000..738b538f --- /dev/null +++ b/tests/Unit/Controllers/BaseControllerTest.php @@ -0,0 +1,25 @@ +<?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()); + } +} |