Skip to content

Instantly share code, notes, and snippets.

@bshaffer
Created September 9, 2010 19:09
Show Gist options
  • Save bshaffer/572361 to your computer and use it in GitHub Desktop.
Save bshaffer/572361 to your computer and use it in GitHub Desktop.
<?php
$browser
->info('Check submission of form')
->login()
->click('Register')
->setField('user_comment[first_name]', csFactory::firstName())
->setField('user_comment[last_name]', csFactory::lastName())
->setField('user_comment[user_marketting][email]', csFactory::email())
->click('Submit')
->with('form')->begin()
->hasErrors(false)
->end()
->followRedirect()
->with('doctrine')->begin()
->check('UserMarketting', array('user_comment_id' => null), false)
->end()
->with('response')->begin()
->matches('/Thank you for your registration/')
->end()
->logout()
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment