public function setUp()
 {
     parent::setUp();
     $this->user = User::getByUsername('super');
     Yii::app()->user->userModel = $this->user;
     Campaign::deleteAll();
 }
 public function setUp()
 {
     parent::setUp();
     $super = User::getByUsername('super');
     Yii::app()->user->userModel = $super;
     $campaigns = Campaign::getAll();
     $contacts = Contact::getByName('test testson');
     $this->contact = $contacts[0];
     $this->campaignItem = $campaigns[0]->campaignItems[0];
 }
 public function setUp()
 {
     parent::setUp();
     $this->user = User::getByUsername('super');
     Yii::app()->user->userModel = $this->user;
     Campaign::deleteAll();
     CampaignItem::deleteAll();
     Contact::deleteAll();
     MarketingList::deleteAll();
     MarketingListMember::deleteAll();
 }
 public function setUp()
 {
     parent::setUp();
     Yii::app()->user->userModel = User::getByUsername('super');
 }