當前位置: 首頁>>代碼示例>>PHP>>正文


PHP UnitTester::amOnRoute方法代碼示例

本文整理匯總了PHP中UnitTester::amOnRoute方法的典型用法代碼示例。如果您正苦於以下問題:PHP UnitTester::amOnRoute方法的具體用法?PHP UnitTester::amOnRoute怎麽用?PHP UnitTester::amOnRoute使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在UnitTester的用法示例。


在下文中一共展示了UnitTester::amOnRoute方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: testShowAction

 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');
 }
開發者ID:Soolan,項目名稱:mava-project,代碼行數:8,代碼來源:WorkspaceControllerTest.php

示例2: testIndexAction

 public function testIndexAction()
 {
     $this->tester->amOnRoute('dashboard_index');
     $this->tester->seeResponseContains('This is a placeholder for dashboard area.');
 }
開發者ID:Soolan,項目名稱:mava-project,代碼行數:5,代碼來源:DashboardControllerTest.php

示例3: _before

 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' => 'sekisui@heim.co.jp', 'age' => '61~65歳', 'job' => '無職'];
 }
開發者ID:vodanh624321,項目名稱:laravel5,代碼行數:6,代碼來源:CommonInquireFormRequestTest.php

示例4: _before

 protected function _before()
 {
     $this->tester->amOnRoute('digital-input');
     $this->instance = new DigitalForm();
     $this->data = ['email1' => 'sekisui@heim.co.jp'];
 }
開發者ID:vodanh624321,項目名稱:laravel5,代碼行數:6,代碼來源:CommonDigitalFormRequestTest.php


注:本文中的UnitTester::amOnRoute方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。