AcProjectsControllerTest::testEditActionAllows PHP Method

testEditActionAllows() public method

    public function testEditActionAllows()
    {
        $actionName = 'edit';
        $model = $this->buildModel();
        $this->assertCan($actionName, $this->modelName);
        $response = $this->action('GET', $this->controllerName . "@" . $actionName, [$model->id]);
        $this->assertViewHas('acProject');
        $view = $response->original;
        $this->assertEquals($view->acProject->id, 5);
    }