当前位置: 首页>>代码示例>>PHP>>正文


PHP ZurmoBaseTest::setUp方法代码示例

本文整理汇总了PHP中ZurmoBaseTest::setUp方法的典型用法代码示例。如果您正苦于以下问题:PHP ZurmoBaseTest::setUp方法的具体用法?PHP ZurmoBaseTest::setUp怎么用?PHP ZurmoBaseTest::setUp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ZurmoBaseTest的用法示例。


在下文中一共展示了ZurmoBaseTest::setUp方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setUp

 public function setUp()
 {
     parent::setUp();
     if (!EmailMessageTestHelper::isSetEmailAccountsTestConfiguration()) {
         $this->markTestSkipped('Please fix the test email settings');
     }
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:7,代码来源:ProcessOutboundEmailJobTest.php

示例2: setUp

 public function setUp()
 {
     parent::setUp();
     Yii::app()->user->userModel = User::getByUsername('super');
     EmailMessage::deleteAll();
     Notification::deleteAll();
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:7,代码来源:TaskNotificationUtilTest.php

示例3: setUp

 public function setUp()
 {
     parent::setUp();
     Yii::app()->user->userModel = User::getByUsername('super');
     $this->processReadMungeAsWriteMungeValue = Yii::app()->params['processReadMungeAsWriteMunge'];
     Yii::app()->params['processReadMungeAsWriteMunge'] = false;
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:7,代码来源:PermissionsTest.php

示例4: setup

 public function setup()
 {
     parent::setUp();
     Yii::app()->user->userModel = User::getByUsername('super');
     Yii::app()->user->userModel->timeZone = 'America/Chicago';
     DisplayAttributeForReportForm::resetCount();
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:7,代码来源:DisplayAttributesMatrixReportQueryBuilderTest.php

示例5: setUp

 public function setUp()
 {
     EmailMessageTestHelper::purgeAllMessages();
     parent::setUp();
     $this->user = User::getByUsername('super');
     Yii::app()->user->userModel = $this->user;
 }
开发者ID:sandeep1027,项目名称:zurmo_,代码行数:7,代码来源:ZurmoImapTest.php

示例6: setUp

 public function setUp()
 {
     parent::setUp();
     if (!SendGridTestHelper::isSetSendGridAccountTestConfiguration()) {
         $this->markTestSkipped(Zurmo::t('SendGridModule', 'Email test settings are missing.'));
     }
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:7,代码来源:SendGridEmailHelperTest.php

示例7: setUp

 public function setUp()
 {
     parent::setUp();
     $this->user = User::getByUsername('super');
     Yii::app()->user->userModel = $this->user;
     $this->purgeAllCampaigns();
 }
开发者ID:sandeep1027,项目名称:zurmo_,代码行数:7,代码来源:CampaignItemsUtilTest.php

示例8: setUp

 public function setUp()
 {
     parent::setUp();
     Yii::app()->user->userModel = User::getByUsername('super');
     DisplayAttributeForReportForm::resetCount();
     DrillDownDisplayAttributeForReportForm::resetCount();
 }
开发者ID:youprofit,项目名称:Zurmo,代码行数:7,代码来源:SummationReportWizardFormTest.php

示例9: setup

 public function setup()
 {
     parent::setUp();
     Yii::app()->user->userModel = User::getByUsername('super');
     ModelRelationsAndAttributesToSummableReportAdapter::forgetAll();
     ModelRelationsAndAttributesToRowsAndColumnsReportAdapter::forgetAll();
     ModelRelationsAndAttributesToMatrixReportAdapter::forgetAll();
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:8,代码来源:DisplayAttributeForReportFormTest.php

示例10: setUp

 public function setUp()
 {
     parent::setUp();
     Yii::app()->user->userModel = User::getByUsername('super');
     $emailBoxes = EmailBox::getAll();
     $this->emailBox = $emailBoxes[0];
     $this->marketingList = MarketingListTestHelper::createMarketingListByName('Test Marketing List');
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:8,代码来源:MarketingListGrowthChartDataProviderTest.php

示例11: setUp

 public function setUp()
 {
     parent::setUp();
     Yii::app()->user->userModel = User::getByUsername('super');
     $file = ZurmoTestHelper::createImageFileModel();
     $this->imageFile1Id = $file->id;
     $file->forget();
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:8,代码来源:ImageFileTest.php

示例12: setUp

 public function setUp()
 {
     parent::setUp();
     $this->super = User::getByUsername('super');
     Yii::app()->user->userModel = $this->super;
     $projects = Project::getAll();
     $this->project = $projects[0];
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:8,代码来源:DashboardActiveProjectListViewColumnAdapterTest.php

示例13: setUp

 public function setUp()
 {
     parent::setUp();
     $this->user = User::getByUsername('super');
     Yii::app()->user->userModel = $this->user;
     if (!EmailMessageTestHelper::isSetEmailAccountsTestConfiguration()) {
         $this->markTestSkipped(Zurmo::t('EmailMessagesModule', 'Email test settings are missing.'));
     }
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:9,代码来源:EmailHelperTest.php

示例14: setUp

 public function setUp()
 {
     parent::setUp();
     RedBeanModel::forgetAll();
     $this->setupServerUrl();
     if (!$this->isApiTestUrlConfigured()) {
         $this->markTestSkipped(Zurmo::t('ApiModule', 'API test url is not configured in perInstanceTest.php file.'));
     }
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:9,代码来源:ApiBaseTest.php

示例15: setUp

 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;
 }
开发者ID:KulturedKitsch,项目名称:kulturedkitsch.info,代码行数:9,代码来源:ZurmoMailerFactoryTest.php


注:本文中的ZurmoBaseTest::setUp方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。