當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。