本文整理汇总了PHP中sfTestFunctional::click方法的典型用法代码示例。如果您正苦于以下问题:PHP sfTestFunctional::click方法的具体用法?PHP sfTestFunctional::click怎么用?PHP sfTestFunctional::click使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sfTestFunctional
的用法示例。
在下文中一共展示了sfTestFunctional::click方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dirname
<?php
$app = 'frontend';
$fixtures = true;
require_once dirname(__FILE__) . '/../bootstrap/functional.php';
$b = new sfTestFunctional(new sfBrowser());
$b->setTester('doctrine', 'sfTesterDoctrine');
$info = array('models_user' => array('isActive' => true, 'username' => 'jonwage2', 'password' => 'newpassword', 'profile' => array('firstName' => 'Jon', 'lastName' => 'Wage')));
$checkInfo = array('isActive' => true, 'username' => 'jonwage2', 'password' => md5('newpassword'));
$b->get('/users')->click('jwage')->click('Save', $info)->with('form')->begin()->hasErrors(false)->end()->with('doctrine')->begin()->check($em, 'Entities\\User', $checkInfo)->end()->with('response')->begin()->isRedirected(true)->followRedirect()->end();
$info = array('models_user' => array('isActive' => false, 'username' => 'jwage', 'password' => 'changeme', 'profile' => array('firstName' => 'J', 'lastName' => 'Wage')));
$checkInfo = array('isActive' => 0, 'username' => 'jwage', 'password' => md5('changeme'));
$b->click('Back to list')->click('New')->click('Save', $info)->with('form')->begin()->hasErrors(false)->end()->with('doctrine')->begin()->check($em, 'Entities\\User', $checkInfo)->check($em, 'Entities\\Profile', $info['models_user']['profile'])->end()->with('response')->begin()->isRedirected(true)->followRedirect()->end();