WebTestCase::setUp PHP Méthode

setUp() protected méthode

This mainly sets the base URL for the test application.
protected setUp ( )
    protected function setUp()
    {
        parent::setUp();
        $this->setBrowser('*chrome');
        $this->setBrowserUrl(TEST_BASE_URL);
    }

Usage Example

 protected function setUp()
 {
     parent::setUp();
     $election = Election::model()->findByPk(1);
     $election->status = Election::STATUS_REGISTRATION;
     $election->save(false);
 }
All Usage Examples Of WebTestCase::setUp
WebTestCase