Development

Changeset 11903

You must first sign up to be able to contribute.

Changeset 11903

Show
Ignore:
Timestamp:
10/02/08 13:52:06 (6 years ago)
Author:
fabien
Message:

[1.2] updated the functional test skeleton to reflect the new API

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.2/lib/task/generator/skeleton/module/test/actionsTest.php

    r6880 r11903  
    33include(dirname(__FILE__).'/../../bootstrap/functional.php'); 
    44 
    5 // create a new test browser 
    6 $browser = new sfTestBrowser(); 
     5$browser = new sfTestFunctional(new sfBrowser()); 
    76 
    87$browser-> 
    98  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  
    11# get /articleInitCrud/index 
    2 ok 1 - status code is 200 
    3 ok 2 - request parameter module is articleInitCrud 
    4 ok 3 - request parameter action is index 
     2ok 1 - request parameter module is articleInitCrud 
     3ok 2 - request parameter action is index 
     4ok 3 - status code is 200 
    55ok 4 - response selector body does not match regex /This is a temporary page/ 
    661..4