AcTasksControllerTest::testShowActionDenies PHP Method

testShowActionDenies() public method

    public function testShowActionDenies()
    {
        $actionName = 'show';
        $this->authority->deny($actionName, $this->modelName);
        $parentModel = $this->buildParentModel();
        $model = $this->buildModel();
        $this->assertCannot($actionName, $this->modelName);
        $this->action('GET', $this->controllerName . "@" . $actionName, [$parentModel->id, $model->id]);
    }