Changeset 11903
- Timestamp:
- 10/02/08 13:52:06 (5 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.2/lib/task/generator/skeleton/module/test/actionsTest.php
r6880 r11903 3 3 include(dirname(__FILE__).'/../../bootstrap/functional.php'); 4 4 5 // create a new test browser 6 $browser = new sfTestBrowser(); 5 $browser = new sfTestFunctional(new sfBrowser()); 7 6 8 7 $browser-> 9 8 get('/##MODULE_NAME##/index')-> 10 isStatusCode(200)-> 11 isRequestParameter('module', '##MODULE_NAME##')-> 12 isRequestParameter('action', 'index')-> 13 checkResponseElement('body', '!/This is a temporary page/'); 9 10 with('request')->begin()-> 11 isParameter('module', '##MODULE_NAME##')-> 12 isParameter('action', 'index')-> 13 end()-> 14 15 with('response')->begin()-> 16 isStatusCode(200)-> 17 checkElement('body', '!/This is a temporary page/')-> 18 end() 19 ; branches/1.2/test/other/fixtures/test/functional/result.txt
r4253 r11903 1 1 # get /articleInitCrud/index 2 ok 1 - status code is 2003 ok 2 - request parameter module is articleInitCrud4 ok 3 - request parameter action is index2 ok 1 - request parameter module is articleInitCrud 3 ok 2 - request parameter action is index 4 ok 3 - status code is 200 5 5 ok 4 - response selector body does not match regex /This is a temporary page/ 6 6 1..4