AcTasksControllerTest::testCreateActionDenies PHP Метод

testCreateActionDenies() публичный Метод

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