AcProjectsControllerTest::testShowActionAllows PHP Method

testShowActionAllows() public method

    public function testShowActionAllows()
    {
        $actionName = 'show';
        $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);
    }