本文整理匯總了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');
}
示例2: testIndexAction
public function testIndexAction()
{
$this->tester->amOnRoute('dashboard_index');
$this->tester->seeResponseContains('This is a placeholder for dashboard area.');
}
示例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' => '無職'];
}
示例4: _before
protected function _before()
{
$this->tester->amOnRoute('digital-input');
$this->instance = new DigitalForm();
$this->data = ['email1' => 'sekisui@heim.co.jp'];
}