本文整理汇总了PHP中ZurmoWalkthroughBaseTest类的典型用法代码示例。如果您正苦于以下问题:PHP ZurmoWalkthroughBaseTest类的具体用法?PHP ZurmoWalkthroughBaseTest怎么用?PHP ZurmoWalkthroughBaseTest使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ZurmoWalkthroughBaseTest类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: 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.
self::$account = AccountTestHelper::createAccountByNameForOwner('superAccount', $super);
self::$account2 = AccountTestHelper::createAccountByNameForOwner('superAccount2', $super);
}
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:10,代码来源:AccountAccountAffiliationsSuperUserWalkthroughTest.php
示例17: 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.
ReadPermissionsOptimizationUtil::rebuild();
$simpleUser = UserTestHelper::createBasicUser('simpleUser');
}
开发者ID:youprofit,项目名称:Zurmo,代码行数:10,代码来源:AccountsRegularUserUnlinkWalkthroughTest.php
示例18: setUpBeforeClass
public static function setUpBeforeClass()
{
parent::setUpBeforeClass();
SecurityTestHelper::createSuperAdmin();
$super = User::getByUsername('super');
Yii::app()->user->userModel = $super;
Currency::makeBaseCurrency();
//create a lead here
LeadTestHelper::createLeadbyNameForOwner('superLead', $super);
}
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:10,代码来源:LeadsDesignerSuperUserWalkthroughTest.php
示例19: setUpBeforeClass
public static function setUpBeforeClass()
{
parent::setUpBeforeClass();
SecurityTestHelper::createSuperAdmin();
$super = User::getByUsername('super');
Yii::app()->user->userModel = $super;
Currency::makeBaseCurrency();
//Create a account for testing
$account = AccountTestHelper::createAccountByNameForOwner('superAccount', $super);
}
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:10,代码来源:AccountsSuperUserCustomDateNullValueBugWalkthroughTest.php
示例20: 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.
//Setup default dashboard.
Dashboard::getByLayoutIdAndUser(Dashboard::DEFAULT_USER_LAYOUT_ID, $super);
ContactsModule::loadStartingData();
}
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:11,代码来源:HomeSuperUserWalkthroughTest.php
注:本文中的ZurmoWalkthroughBaseTest类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论