adminActionsTest.php 393 B

1234567891011121314151617181920
  1. <?php
  2. include(dirname(__FILE__).'/../../bootstrap/functional.php');
  3. $browser = new sfTestFunctional(new sfBrowser());
  4. $browser->
  5. get('/admin/index')->
  6. with('request')->begin()->
  7. isParameter('module', 'admin')->
  8. isParameter('action', 'index')->
  9. end()->
  10. with('response')->begin()->
  11. isStatusCode(200)->
  12. checkElement('body', '!/This is a temporary page/')->
  13. end()
  14. ;