public function testShowAction() { $workspaceId = $this->tester->grabFromRepository('AppBundle:Workspace', 'id', array('name' => 'Writing')); $projectTitle = $this->tester->grabFromRepository('AppBundle:Project', 'title', array('workspace' => $workspaceId)); $this->assertEquals('Symfony book', $projectTitle, 'no match found'); $this->tester->amOnRoute('workspace_show', array('name' => 'Writing')); $this->tester->seeResponseContains('Symfony book'); }