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