本文整理汇总了PHP中DatabaseTestCase类的典型用法代码示例。如果您正苦于以下问题:PHP DatabaseTestCase类的具体用法?PHP DatabaseTestCase怎么用?PHP DatabaseTestCase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了DatabaseTestCase类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUp
/** init test */
public function setUp()
{
$this->setupDatabase(array('metadata'));
$this->_models = array('Metadata', 'ItemRevision');
$this->_daos = array();
parent::setUp();
}
示例2: setUp
public function setUp()
{
parent::setUp();
$this->siteUrls = new SiteUrls();
$this->api = API::getInstance();
SiteUrls::clearSitesCache();
}
示例3: setUp
public function setUp()
{
parent::setUp();
$this->api = API::getInstance();
Fixture::createWebsite('2014-01-01 00:00:00');
Fixture::createWebsite('2014-01-01 00:00:00');
}
示例4: setUp
/** init tests */
public function setUp()
{
$this->setupDatabase(array('default'));
$this->_models = array('Community', 'Folder', 'User', 'Folderpolicygroup', 'Folderpolicyuser');
$this->_daos = array();
parent::setUp();
}
示例5: setUp
/** init test */
public function setUp()
{
$this->enabledModules = array('batchmake');
parent::setUp();
$this->setupDatabase(array('default'), 'batchmake');
// module dataset
}
示例6: setUp
protected function setUp()
{
parent::setUp();
$account = new Ot_Account();
$this->_account = new Ot_Account();
//var_dump($this->_account->fetchAll()->toArray());
}
示例7: setUp
/** init tests */
public function setUp()
{
$this->setupDatabase(array());
$this->_models = array('Feedpolicygroup');
$this->_daos = array();
parent::setUp();
}
示例8: tearDown
public function tearDown()
{
parent::tearDown();
Log::unsetInstance();
@unlink(self::getLogFileLocation());
Error::$debugBacktraceForTests = ExceptionHandler::$debugBacktraceForTests = null;
}
示例9: tearDown
public function tearDown()
{
parent::tearDown();
$app = \FelixOnline\Core\App::getInstance();
$app['db']->dbh->close();
\FelixOnline\Core\App::setInstance(null);
}
示例10: setUp
/** set up tests */
public function setUp()
{
$this->setupDatabase(array('default'), 'statistics');
$this->enabledModules = array('scheduler', 'statistics');
$this->_models = array();
parent::setUp();
}
示例11: setUp
/** init test */
public function setUp()
{
$this->setupDatabase(array('default'));
$this->_models = array('Assetstore');
$this->_daos = array();
parent::setUp();
}
示例12: setUp
/** init tests */
public function setUp()
{
$this->setupDatabase(array());
$this->_models = array('Feed');
$this->_daos = array('Feed', 'Community', 'Item', 'User', 'ItemRevision');
parent::setUp();
}
示例13: setUp
/** init tests */
public function setUp()
{
$this->setupDatabase(array());
$this->_models = array('User');
$this->_daos = array('User');
parent::setUp();
}
示例14: setUp
/**
* @see PKPTestCase::setUp()
*/
protected function setUp()
{
parent::setUp();
// Instantiate the plug-in for testing.
$this->mockRequest();
PluginRegistry::loadCategory('generic', true, 0);
$this->lucenePlugin = PluginRegistry::getPlugin('generic', 'luceneplugin');
}
示例15: setUp
public function setUp()
{
parent::setUp();
$this->manager = new PrivacyManager();
\Piwik\Option::set('delete_logs_enable', 1);
\Piwik\Option::set('delete_logs_older_than', 270);
\Piwik\Option::set('delete_reports_keep_week_reports', 1);
}