Any suggestions on how to make this work? As part of my functional tests I
am trying to verify if address_book module, index page contains text
"address book" (it does). However sfTesterReponse->checkElement checks
entire text of the page. And if I do check('address_book/index', 'address
book')-> I get this error which makes no sense as check method allows 2
parameters (URL and text).
PHP sent a "warning" error at
../symfony-1.4.11/lib/test/sfTestFunctionalBase.class.php line 433
(call_user_func_array(): First argument is expected to be a valid callback,
'sfBrowser::contains' was given)
Here is the code:
$browser->
info('index test')->
getAndCheck('address_book', 'index', 'address_book/index', 200)->
#check('address_book/index', 'address book')->
check('address_book/index')->
with('response')->begin()->
checkElement('body', '!/This is a test/')->
end()
;
Thank you very much
Dmitry
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en