AcProjectsControllerTest::testUpdateActionAllows PHP Метод

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

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