AcProjectsControllerTest::testIndexActionAllows PHP Method

testIndexActionAllows() public method

    public function testIndexActionAllows()
    {
        $actionName = 'index';
        $model = $this->buildModel();
        $this->assertCan($actionName, $this->modelName);
        $this->action('GET', $this->controllerName . "@" . $actionName);
        $this->assertViewHas('acProjects', $model->get());
    }