public function testShouldLoadACollectionResourceWhenOnCustomActionWithNoIdParam()
{
$project = $this->mock('Project');
$project->shouldReceive('get')->once()->andReturn("found_projects");
$this->params['action'] = "sort";
$resource = new Efficiently\AuthorityController\ControllerResource($this->controller);
$resource->loadResource();
$this->assertNull($this->getProperty($this->controller, 'project'));
$this->assertEquals($this->getProperty($this->controller, 'projects'), 'found_projects');
}