AcTasksControllerTest::testStoreActionAllows PHP Метод

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

    public function testStoreActionAllows()
    {
        $actionName = 'store';
        $parentModel = $this->buildParentModel();
        $modelAttributes = array_except($this->modelAttributes, 'id');
        $model = $this->buildModel($modelAttributes);
        $this->assertCan($actionName, $this->modelName);
        $this->action('POST', $this->controllerName . "@" . $actionName, [$parentModel->id], $modelAttributes);
        $this->assertRedirectedToRoute($this->resourceName . '.index', $parentModel->id);
    }