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');
 }
 public function testIndexAction()
 {
     $this->tester->amOnRoute('dashboard_index');
     $this->tester->seeResponseContains('This is a placeholder for dashboard area.');
 }
 protected function _before()
 {
     $this->tester->amOnRoute('inquire-input', ['inquire', 'others']);
     $this->instance = new InquireForm();
     $this->data = ['ext53' => 'test', 'name1' => '積水', 'name2' => '太郎', 'kana1' => 'セキスイ', 'kana2' => 'タロウ', 'sex' => '男', 'tel1' => '01-1234-5678', 'fax1' => '123-4123-1234', 'post1' => '060-0013', 'area' => '北海道', 'address1' => '市区町村', 'address2' => '地名・番地・建物名', 'email1' => '*****@*****.**', 'age' => '61~65歳', 'job' => '無職'];
 }
 protected function _before()
 {
     $this->tester->amOnRoute('digital-input');
     $this->instance = new DigitalForm();
     $this->data = ['email1' => '*****@*****.**'];
 }