public function testResolveResourceAndParentResourceIdsFromRequestWithSingularControllerAndRoute()
{
$parameters = $this->parameters;
$controllerName = "TaskController";
Route::resource('project.task', $controllerName);
$controller = $this->mockController($controllerName);
$this->call('GET', '/project/5/task/2');
// show action of task resource
$this->assertArrayHasKey('project_id', $this->getProperty($parameters, 'params'));
$this->assertEquals($this->getProperty($parameters, 'params')['project_id'], '5');
$this->assertArrayHasKey('project_id', $this->getProperty($controller, 'params'));
$this->assertEquals($this->getProperty($controller, 'params')['project_id'], '5');
$this->assertArrayHasKey('id', $this->getProperty($parameters, 'params'));
$this->assertEquals($this->getProperty($parameters, 'params')['id'], '2');
$this->assertArrayHasKey('id', $this->getProperty($controller, 'params'));
$this->assertEquals($this->getProperty($controller, 'params')['id'], '2');
}