本文整理汇总了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();
}
示例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'));
}
示例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];
}
示例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);
}
示例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];
}
示例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();
}
示例7: setUp
public function setUp()
{
parent::setUp();
$this->user = $this->logoutCurrentUserLoginNewUserAndGetByUsername('nobody');
Yii::app()->user->userModel = $this->user;
}
示例8: setUp
public function setUp()
{
parent::setUp();
$super = $this->logoutCurrentUserLoginNewUserAndGetByUsername('super');
}
示例9: setUp
public function setUp()
{
parent::setUp();
$this->user = $this->logoutCurrentUserLoginNewUserAndGetByUsername($this->getTestUsername());
}
示例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();
}
示例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;
}
示例13: setUp
public function setUp()
{
parent::setUp();
$this->rules = new NotificationMashableInboxRules();
}