本文整理匯總了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();
}