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


PHP ZurmoWalkthroughBaseTest::setUp方法代码示例

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


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

示例1: 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,代码来源:ImageModelSuperUserWalkthroughtTest.php

示例2: setup

 public function setup()
 {
     parent::setUp();
     SecurityTestHelper::createSuperAdmin();
     $super = User::getByUsername('super');
     Yii::app()->user->userModel = $super;
     $this->modelsWithMashableInboxInterface = array_keys(MashableUtil::getModelDataForCurrentUserByInterfaceName('MashableInboxInterface'));
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:8,代码来源:MashableInboxUserWalkthroughTest.php

示例3: setUp

 public function setUp()
 {
     parent::setUp();
     $this->user = User::getByUsername('super');
     Yii::app()->user->userModel = $this->user;
     $campaigns = Campaign::getAll();
     $this->campaign = $campaigns[0];
 }
开发者ID:sandeep1027,项目名称:zurmo_,代码行数:8,代码来源:CampaignDefaultControllerSuperUserWalkthroughTest.php

示例4: setUp

 public function setUp()
 {
     parent::setUp();
     $this->user = $this->logoutCurrentUserLoginNewUserAndGetByUsername('super');
     Yii::app()->user->userModel = $this->user;
     $marketingListId = static::$marketingList->id;
     static::$marketingList->forget();
     static::$marketingList = MarketingList::getById($marketingListId);
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:9,代码来源:EnsureUnsubscribeStateIsRegardedWalkthroughTest.php

示例5: setUp

 public function setUp()
 {
     parent::setUp();
     $this->super = $this->logoutCurrentUserLoginNewUserAndGetByUsername('super');
     $savedWorkflows = SavedWorkflow::getAll();
     $this->savedWorkflow = $savedWorkflows[0];
     $models = WorkflowModelTestItem::getAll();
     $this->model = $models[0];
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:9,代码来源:WorkflowInQueuesSuperUserWalkthroughTest.php

示例6: setUp

 public function setUp()
 {
     parent::setUp();
     list(, $this->databaseHostname, $this->databasePort, $this->databaseName) = array_values(RedBeanDatabase::getDatabaseInfoFromDsnString(Yii::app()->db->connectionString));
     $this->databaseUsername = Yii::app()->db->username;
     $this->databasePassword = Yii::app()->db->password;
     $this->superUserPassword = 'super';
     $this->instanceRoot = INSTANCE_ROOT;
     $this->perInstanceFile = "{$this->instanceRoot}/protected/config/perInstanceTest.php";
     $this->debugFile = "{$this->instanceRoot}/protected/config/debugTest.php";
     if (is_file($this->perInstanceFile)) {
         $this->perInstanceConfigContents = file_get_contents($this->perInstanceFile);
         unlink($this->perInstanceFile);
     }
     if (is_file($this->debugFile)) {
         $this->debugConfigContents = file_get_contents($this->debugFile);
         unlink($this->debugFile);
     }
     Yii::app()->gameHelper->muteScoringModelsOnSave();
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:20,代码来源:InstallWalkthroughTest.php

示例7: setUp

 public function setUp()
 {
     parent::setUp();
     $this->user = $this->logoutCurrentUserLoginNewUserAndGetByUsername('nobody');
     Yii::app()->user->userModel = $this->user;
 }
开发者ID:youprofit,项目名称:Zurmo,代码行数:6,代码来源:EmailTemplatesRegularUserWalkthroughTest.php

示例8: setUp

 public function setUp()
 {
     parent::setUp();
     $super = $this->logoutCurrentUserLoginNewUserAndGetByUsername('super');
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:5,代码来源:ReportsSuperUserWalkthroughTest.php

示例9: setUp

 public function setUp()
 {
     parent::setUp();
     $this->user = $this->logoutCurrentUserLoginNewUserAndGetByUsername($this->getTestUsername());
 }
开发者ID:spiogit,项目名称:cna-seed-project,代码行数:5,代码来源:EmailTemplatesSuperUserWalkthroughTest.php

示例10: setUp

 public function setUp()
 {
     parent::setUp();
     $this->user = User::getByUsername('nobody');
     Yii::app()->user->userModel = $this->user;
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:6,代码来源:CampaignDefaultControllerRegularUserWalkthroughTest.php

示例11: setUp

 public function setUp()
 {
     parent::setUp();
     $this->rules = new ConversationMashableInboxRules();
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:5,代码来源:ConversationsMashableInboxRulesTest.php

示例12: setUp

 /**
  * Set the processReadMungeAsWriteMungeValue as false, so we can do tests using permission READ
  */
 public function setUp()
 {
     parent::setUp();
     $this->processReadMungeAsWriteMungeValue = Yii::app()->params['processReadMungeAsWriteMunge'];
     Yii::app()->params['processReadMungeAsWriteMunge'] = false;
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:9,代码来源:ZurmoRegularUserWalkthroughBaseTest.php

示例13: setUp

 public function setUp()
 {
     parent::setUp();
     $this->rules = new NotificationMashableInboxRules();
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:5,代码来源:NotificationsMashableInboxRulesTest.php


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