public function testShouldFindRecordThroughHasOneAssociationWithSingletonAndShallowOptions()
{
$projectAttributes = ['id' => 2];
$project = $this->buildModel('Project', $projectAttributes);
$this->params = array_merge($this->params, array_merge(['action' => 'show', 'id' => $project->id]));
$resource = new Efficiently\AuthorityController\ControllerResource($this->controller, ['through' => 'category', 'singleton' => true, 'shallow' => true]);
$resource->loadResource();
$this->assertEquals($this->getProperty($this->controller, 'project'), $project);
}