luyadev/luya-module-cms

View on GitHub
tests/src/admin/controllers/DefaultControllerTest.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace cmstests\src\admin\controllers;

use cmstests\WebModelTestCase;
use luya\cms\admin\controllers\DefaultController;
use luya\testsuite\scopes\PermissionScope;

class DefaultControllerTest extends WebModelTestCase
{
    /**
     * @runInSeparateProcess
     */
    public function testActions()
    {
        PermissionScope::run($this->app, function (PermissionScope $scope) {
            $ctrl = new DefaultController('default', $this->app->getModule('cmsadmin'));
            $this->assertNotEmpty($ctrl->actionIndex());
        });
    }
}