本文整理汇总了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'];
}