Development

Changeset 6498

You must first sign up to be able to contribute.

Changeset 6498

Show
Ignore:
Timestamp:
12/14/07 08:54:34 (1 year ago)
Author:
fabien
Message:

doc: remove ->initialize() calls

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • doc/trunk/book/10-Forms.txt

    r5367 r6498  
    533533 
    534534      // The name field must be a text entry between 2 and 100 characters 
    535       $myValidator = new sfStringValidator(); 
    536       $myValidator->initialize($this->getContext(), array( 
     535      $myValidator = new sfStringValidator($this->getContext(), array( 
    537536        'min'       => 2, 
    538537        'min_error' => 'This name is too short (2 characters minimum)', 
  • doc/trunk/book/15-Unit-and-Functional-Testing.txt

    r6117 r6498  
    415415    // Create a new test browser 
    416416    $browser = new sfTestBrowser(); 
    417     $browser->initialize(); 
    418417 
    419418    $browser-> 
     
    460459    // Create a new test browser 
    461460    $b = new sfTestBrowser(); 
    462     $b->initialize(); 
    463461 
    464462    $b->get('/foobar/show/id/1');                   // GET request 
     
    507505    // Example functional test for this form 
    508506    $b = new sfTestBrowser(); 
    509     $b->initialize(); 
    510507    $b->get('/foobar/edit/id/1'); 
    511508 
     
    537534    // Example functional test for this action 
    538535    $b = new sfTestBrowser(); 
    539     $b->initialize(); 
    540536    $b->get('/foobar/edit?id=1')-> 
    541537        click('go', array('name' => 'dummy'))-> 
     
    560556>     // Create a new browser 
    561557>     $b = new sfBrowser(); 
    562 >     $b->initialize(); 
    563558>     $b->get('/foobar/show/id/1')-> 
    564559>         setField('name', 'dummy')-> 
     
    577572    [php] 
    578573    $b = new sfTestBrowser(); 
    579     $b->initialize(); 
    580574    $b->get('/foobar/edit/id/1'); 
    581575    $request  = $b->getRequest(); 
     
    607601    [php] 
    608602    $b = new sfTestBrowser(); 
    609     $b->initialize(); 
    610603    $b->get('/foobar/edit/id/1')-> 
    611604        isRequestParameter('id', 1)-> 
     
    633626    [php] 
    634627    $b = new sfTestBrowser(); 
    635     $b->initialize(); 
    636628    $b-> 
    637629        get('/foobar/edit/id/1')-> 
     
    658650    [php] 
    659651    $b = new sfTestBrowser(); 
    660     $b->initialize(); 
    661652    $b->get('/foobar/edit/id/1'); 
    662653    $dom = $b->getResponseDom(); 
     
    669660    [php] 
    670661    $b = new sfTestBrowser(); 
    671     $b->initialize(); 
    672662    $b->get('/foobar/edit/id/1'); 
    673663    $c = new sfDomCssSelector($b->getResponseDom()) 
     
    682672    [php] 
    683673    $b = new sfTestBrowser(); 
    684     $b->initialize(); 
    685674    $b->get('/foobar/edit/id/1')-> 
    686675        checkResponseElement('form input[type="hidden"][value="1"]', true)-> 
     
    702691    [php] 
    703692    $b = new sfTestBrowser(); 
    704     $b->initialize(); 
    705693    $b->get('/foobar/edit?id=1')-> 
    706694        checkResponseElement('form textarea', 'foo')-> 
     
    713701    [php] 
    714702    $b = new sfTestBrowser(); 
    715     $b->initialize(); 
    716703    $b->get('/foobar/edit?id=1')-> 
    717704        checkResponseElement('form input', true, array('count' => 3)); 
     
    749736 
    750737    [php] 
    751     $b = new sfTestBrowser(); 
    752     $b->initialize('myapp.example.com', '123.456.789.123'); 
     738    $b = new sfTestBrowser('myapp.example.com', '123.456.789.123'); 
    753739 
    754740### The test-functional Task 
     
    871857    [php] 
    872858    $databaseManager = new sfDatabaseManager(); 
    873     $databaseManager->initialize(); 
     859    $databaseManager->loadConfiguration(); 
    874860 
    875861    // Optionally, you can retrieve the current database connection 
     
    920906    // Create a new test browser 
    921907    $b = new sfTestBrowser(); 
    922     $b->initialize(); 
    923908 
    924909    $b->get('/mymodule');