AcControllerResourceTest::testShouldLoadParentResourceThroughProperIdParameter PHP Method

testShouldLoadParentResourceThroughProperIdParameter() public method

Should load parent resource through proper id parameter
    public function testShouldLoadParentResourceThroughProperIdParameter()
    {
        $projectAttributes = ['id' => 2];
        $project = $this->buildModel('Project', $projectAttributes);
        $this->params = array_merge($this->params, ['controller' => 'categories', 'action' => 'index', 'project_id' => $project->id]);
        $resource = new Efficiently\AuthorityController\ControllerResource($this->controller, 'project');
        $resource->loadResource();
        $this->assertEquals($this->getProperty($this->controller, 'project'), $project);
    }
AcControllerResourceTest