Where is there an example of testing a secure action? I looked,

* http://www.symfony-project.org/jobeet/1_2/Propel/en/09
* http://www.symfony-project.org/book/1_2/15-Unit-and-Functional-Testing

I don't necessarily want to test that the action is secure, nor do i
want to test the login action - I want to test that my action behaves
correctly - it just happens to be secure, so get('/foo/bar') forwards
to the login action unless I do something about it

I tried,

<?php

include(dirname(__FILE__).'/../../bootstrap/functional.php');

$browser = new sfTestFunctional(new sfBrowser);

$browser->getContext()->getUser()->setAuthenticated(true);

$browser->
  get('/foo/bar')->

  with('response')->begin()->
    checkElement('foo', 'bar')->
  end();

- without success

Where is there an example of testing a secure action?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to