AcTasksControllerTest::testStoreActionDenies PHP Метод

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

    public function testStoreActionDenies()
    {
        $actionName = 'store';
        $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('POST', $this->controllerName . "@" . $actionName, [$parentModel->id], $modelAttributes);
    }