summaryrefslogtreecommitdiff
path: root/tests/Unit/Controllers/BaseControllerTest.php
blob: 738b538f692c08a4644d519f850adf32892c4bcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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());
    }
}