public function setUp()
 {
     parent::setUp();
     if (!SendGridTestHelper::isSetSendGridAccountTestConfiguration()) {
         $this->markTestSkipped(Zurmo::t('SendGridModule', 'Email test settings are missing.'));
     }
 }
 public function setUp()
 {
     parent::setUp();
     if (!(EmailMessageTestHelper::isSetEmailAccountsTestConfiguration() && SendGridTestHelper::isSetSendGridAccountTestConfiguration())) {
         $this->markTestSkipped('Please fix the test email settings');
     }
     $this->user = User::getByUsername('super');
     Yii::app()->user->userModel = $this->user;
 }