AcControllerResourceTest::testShouldNotBuildASingleResourceWhenOnCustomCollectionActionEvenWithId PHP Method

testShouldNotBuildASingleResourceWhenOnCustomCollectionActionEvenWithId() public method

Should not build a single resource when on custom collection action even with id
    public function testShouldNotBuildASingleResourceWhenOnCustomCollectionActionEvenWithId()
    {
        $project = $this->mock('Project');
        $project->shouldReceive('get')->once()->andReturn(collect());
        $this->params = array_merge($this->params, array_merge(['action' => 'sort', 'id' => '123']));
        $resource = new Efficiently\AuthorityController\ControllerResource($this->controller, ['collection' => ['sort', 'list']]);
        $resource->loadResource();
        $this->assertNull($this->getProperty($this->controller, 'project'));
    }
AcControllerResourceTest