本文整理汇总了PHP中ZurmoBaseTest::setUp方法的典型用法代码示例。如果您正苦于以下问题:PHP ZurmoBaseTest::setUp方法的具体用法?PHP ZurmoBaseTest::setUp怎么用?PHP ZurmoBaseTest::setUp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ZurmoBaseTest
的用法示例。
在下文中一共展示了ZurmoBaseTest::setUp方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUp
public function setUp()
{
parent::setUp();
if (!EmailMessageTestHelper::isSetEmailAccountsTestConfiguration()) {
$this->markTestSkipped('Please fix the test email settings');
}
}
示例2: setUp
public function setUp()
{
parent::setUp();
Yii::app()->user->userModel = User::getByUsername('super');
EmailMessage::deleteAll();
Notification::deleteAll();
}
示例3: setUp
public function setUp()
{
parent::setUp();
Yii::app()->user->userModel = User::getByUsername('super');
$this->processReadMungeAsWriteMungeValue = Yii::app()->params['processReadMungeAsWriteMunge'];
Yii::app()->params['processReadMungeAsWriteMunge'] = false;
}
示例4: setup
public function setup()
{
parent::setUp();
Yii::app()->user->userModel = User::getByUsername('super');
Yii::app()->user->userModel->timeZone = 'America/Chicago';
DisplayAttributeForReportForm::resetCount();
}
示例5: setUp
public function setUp()
{
EmailMessageTestHelper::purgeAllMessages();
parent::setUp();
$this->user = User::getByUsername('super');
Yii::app()->user->userModel = $this->user;
}
示例6: setUp
public function setUp()
{
parent::setUp();
if (!SendGridTestHelper::isSetSendGridAccountTestConfiguration()) {
$this->markTestSkipped(Zurmo::t('SendGridModule', 'Email test settings are missing.'));
}
}
示例7: setUp
public function setUp()
{
parent::setUp();
$this->user = User::getByUsername('super');
Yii::app()->user->userModel = $this->user;
$this->purgeAllCampaigns();
}
示例8: setUp
public function setUp()
{
parent::setUp();
Yii::app()->user->userModel = User::getByUsername('super');
DisplayAttributeForReportForm::resetCount();
DrillDownDisplayAttributeForReportForm::resetCount();
}
示例9: setup
public function setup()
{
parent::setUp();
Yii::app()->user->userModel = User::getByUsername('super');
ModelRelationsAndAttributesToSummableReportAdapter::forgetAll();
ModelRelationsAndAttributesToRowsAndColumnsReportAdapter::forgetAll();
ModelRelationsAndAttributesToMatrixReportAdapter::forgetAll();
}
示例10: setUp
public function setUp()
{
parent::setUp();
Yii::app()->user->userModel = User::getByUsername('super');
$emailBoxes = EmailBox::getAll();
$this->emailBox = $emailBoxes[0];
$this->marketingList = MarketingListTestHelper::createMarketingListByName('Test Marketing List');
}
示例11: setUp
public function setUp()
{
parent::setUp();
Yii::app()->user->userModel = User::getByUsername('super');
$file = ZurmoTestHelper::createImageFileModel();
$this->imageFile1Id = $file->id;
$file->forget();
}
示例12: setUp
public function setUp()
{
parent::setUp();
$this->super = User::getByUsername('super');
Yii::app()->user->userModel = $this->super;
$projects = Project::getAll();
$this->project = $projects[0];
}
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:8,代码来源:DashboardActiveProjectListViewColumnAdapterTest.php
示例13: setUp
public function setUp()
{
parent::setUp();
$this->user = User::getByUsername('super');
Yii::app()->user->userModel = $this->user;
if (!EmailMessageTestHelper::isSetEmailAccountsTestConfiguration()) {
$this->markTestSkipped(Zurmo::t('EmailMessagesModule', 'Email test settings are missing.'));
}
}
示例14: setUp
public function setUp()
{
parent::setUp();
RedBeanModel::forgetAll();
$this->setupServerUrl();
if (!$this->isApiTestUrlConfigured()) {
$this->markTestSkipped(Zurmo::t('ApiModule', 'API test url is not configured in perInstanceTest.php file.'));
}
}
示例15: setUp
public function setUp()
{
parent::setUp();
if (!(EmailMessageTestHelper::isSetEmailAccountsTestConfiguration() && SendGridTestHelper::isSetSendGridAccountTestConfiguration())) {
$this->markTestSkipped('Please fix the test email settings');
}
$this->user = User::getByUsername('super');
Yii::app()->user->userModel = $this->user;
}