AcTasksControllerTest::testCreateActionAllows PHP Method

testCreateActionAllows() public method

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