AcTasksControllerTest::testUpdateActionAllows PHP Метод

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

    public function testUpdateActionAllows()
    {
        $actionName = 'update';
        $parentModel = $this->buildParentModel();
        $modelAttributes = $this->modelAttributes;
        $model = $this->buildModel($modelAttributes);
        $this->assertCan($actionName, $this->modelName);
        $this->action('PATCH', $this->controllerName . "@" . $actionName, [$parentModel->id, $model->id], $modelAttributes);
        $this->assertRedirectedToRoute($this->resourceName . '.show', [3, 5]);
    }