當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ZurmoWalkthroughBaseTest類代碼示例

本文整理匯總了PHP中ZurmoWalkthroughBaseTest的典型用法代碼示例。如果您正苦於以下問題:PHP ZurmoWalkthroughBaseTest類的具體用法?PHP ZurmoWalkthroughBaseTest怎麽用?PHP ZurmoWalkthroughBaseTest使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了ZurmoWalkthroughBaseTest類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: setUpBeforeClass

 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     SecurityTestHelper::createSuperAdmin();
     $super = User::getByUsername('super');
     Yii::app()->user->userModel = $super;
     //Setup test data owned by the super user.
     $account = AccountTestHelper::createAccountByNameForOwner('superAccount', $super);
     AccountTestHelper::createAccountByNameForOwner('superAccount2', $super);
     ContactTestHelper::createContactWithAccountByNameForOwner('superContact', $super, $account);
     ContactTestHelper::createContactWithAccountByNameForOwner('superContact2', $super, $account);
     OpportunityTestHelper::createOpportunityStagesIfDoesNotExist();
     OpportunityTestHelper::createOpportunityWithAccountByNameForOwner('superOpp', $super, $account);
     OpportunityTestHelper::createOpportunityWithAccountByNameForOwner('superOpp2', $super, $account);
     OpportunityTestHelper::createOpportunityWithAccountByNameForOwner('superOpp3', $super, $account);
     OpportunityTestHelper::createOpportunityWithAccountByNameForOwner('superOpp4', $super, $account);
     OpportunityTestHelper::createOpportunityWithAccountByNameForOwner('superOpp5', $super, $account);
     OpportunityTestHelper::createOpportunityWithAccountByNameForOwner('superOpp6', $super, $account);
     OpportunityTestHelper::createOpportunityWithAccountByNameForOwner('superOpp7', $super, $account);
     OpportunityTestHelper::createOpportunityWithAccountByNameForOwner('superOpp8', $super, $account);
     OpportunityTestHelper::createOpportunityWithAccountByNameForOwner('superOpp9', $super, $account);
     OpportunityTestHelper::createOpportunityWithAccountByNameForOwner('superOpp10', $super, $account);
     OpportunityTestHelper::createOpportunityWithAccountByNameForOwner('superOpp11', $super, $account);
     OpportunityTestHelper::createOpportunityWithAccountByNameForOwner('superOpp12', $super, $account);
     //Setup default dashboard.
     Dashboard::getByLayoutIdAndUser(Dashboard::DEFAULT_USER_LAYOUT_ID, $super);
 }
開發者ID:sandeep1027,項目名稱:zurmo_,代碼行數:27,代碼來源:OpportunitiesSuperUserWalkthroughTest.php

示例2: setUpBeforeClass

 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     SecurityTestHelper::createSuperAdmin();
     $super = User::getByUsername('super');
     Yii::app()->user->userModel = $super;
     //Setup test data owned by the super user.
     AccountTestHelper::createAccountByNameForOwner('superAccount', $super);
     AccountTestHelper::createAccountByNameForOwner('superAccount2', $super);
     AccountTestHelper::createAccountByNameForOwner('superAccount3', $super);
     AccountTestHelper::createAccountByNameForOwner('superAccount4', $super);
     AccountTestHelper::createAccountByNameForOwner('superAccount5', $super);
     AccountTestHelper::createAccountByNameForOwner('superAccount6', $super);
     AccountTestHelper::createAccountByNameForOwner('superAccount7', $super);
     AccountTestHelper::createAccountByNameForOwner('superAccount8', $super);
     AccountTestHelper::createAccountByNameForOwner('superAccount9', $super);
     AccountTestHelper::createAccountByNameForOwner('superAccount10', $super);
     AccountTestHelper::createAccountByNameForOwner('superAccount11', $super);
     AccountTestHelper::createAccountByNameForOwner('superAccount12', $super);
     AccountTestHelper::createAccountByNameForOwner('superAccount13', $super);
     AccountTestHelper::createAccountByNameForOwner('superAccount14', $super);
     AccountTestHelper::createAccountByNameForOwner('superAccount15', $super);
     AccountTestHelper::createAccountByNameForOwner('superAccount16', $super);
     AccountTestHelper::createAccountByNameForOwner('superAccount17', $super);
     AccountTestHelper::createAccountByNameForOwner('superAccount18', $super);
     AccountTestHelper::createAccountByNameForOwner('superAccount19', $super);
     AccountTestHelper::createAccountByNameForOwner('superAccount20', $super);
     //Setup default dashboard.
     Dashboard::getByLayoutIdAndUser(Dashboard::DEFAULT_USER_LAYOUT_ID, $super);
 }
開發者ID:youprofit,項目名稱:Zurmo,代碼行數:30,代碼來源:AccountsSuperUserWalkthroughTest.php

示例3: setUpBeforeClass

 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     SecurityTestHelper::createSuperAdmin();
     $super = User::getByUsername('super');
     Yii::app()->user->userModel = $super;
 }
開發者ID:youprofit,項目名稱:Zurmo,代碼行數:7,代碼來源:ZurmoDynamicSearchSuperUserWalkthroughTest.php

示例4: 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

示例5: 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

示例6: setUpBeforeClass

 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     SecurityTestHelper::createSuperAdmin();
     $super = User::getByUsername('super');
     Yii::app()->user->userModel = $super;
     NotificationTestHelper::createNotificationByContentAndTypeForOwner('message1', $super);
 }
開發者ID:RamaKavanan,項目名稱:InitialVersion,代碼行數:8,代碼來源:NotificationsWalkthroughTest.php

示例7: setUpBeforeClass

 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     SecurityTestHelper::createSuperAdmin();
     $super = User::getByUsername('super');
     Yii::app()->user->userModel = $super;
     ContactsModule::loadStartingData();
 }
開發者ID:maruthisivaprasad,項目名稱:zurmo,代碼行數:8,代碼來源:ContactsSuperUserZeroModelsWalkthroughTest.php

示例8: 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

示例9: 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

示例10: setUpBeforeClass

 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     SecurityTestHelper::createSuperAdmin();
     $super = User::getByUsername('super');
     Yii::app()->user->userModel = $super;
     //Setup test data owned by the super user.
     ProductTemplateTestHelper::createProductTemplateByName('My Product Template');
 }
開發者ID:maruthisivaprasad,項目名稱:zurmo,代碼行數:9,代碼來源:ProductTemplatesSuperUserMiscWalkthroughTest.php

示例11: 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

示例12: setUpBeforeClass

 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     SecurityTestHelper::createSuperAdmin();
     $super = User::getByUsername('super');
     Yii::app()->user->userModel = $super;
     //Setup test data owned by the super user.
     LeadTestHelper::createLeadbyNameForOwner('superLead', $super);
 }
開發者ID:maruthisivaprasad,項目名稱:zurmo,代碼行數:9,代碼來源:LeadsSuperUserKanbanBoardWalkthroughTest.php

示例13: setUpBeforeClass

 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     SecurityTestHelper::createSuperAdmin();
     $super = User::getByUsername('super');
     Yii::app()->user->userModel = $super;
     //Setup test data owned by the super user.
     AccountTestHelper::createAccountByNameForOwner('superAccount', $super);
     AddressGeoCodeTestHelper::createAndRemoveAccountWithAddress($super);
 }
開發者ID:maruthisivaprasad,項目名稱:zurmo,代碼行數:10,代碼來源:MapsSuperUserWalkthroughTest.php

示例14: setUpBeforeClass

 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     SecurityTestHelper::createSuperAdmin();
     $super = User::getByUsername('super');
     Yii::app()->user->userModel = $super;
     Currency::makeBaseCurrency();
     //Create a Product Template for testing.
     ProductTemplateTestHelper::createProductTemplateByName('superProductTemplate', $super);
 }
開發者ID:youprofit,項目名稱:Zurmo,代碼行數:10,代碼來源:ProductTemplatesDesignerSuperUserWalkthroughTest.php

示例15: setUpBeforeClass

 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     SecurityTestHelper::createSuperAdmin();
     $super = User::getByUsername('super');
     Yii::app()->user->userModel = $super;
     // create ContactStates
     ContactsModule::loadStartingData();
     static::$baseUsername = StringUtil::generateRandomString(6, implode(range('a', 'z')));
 }
開發者ID:maruthisivaprasad,項目名稱:zurmo,代碼行數:10,代碼來源:ZurmoRecordSharingPerformanceBenchmarkTest.php


注:本文中的ZurmoWalkthroughBaseTest類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。