mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-19 03:09:55 +09:00
Moved DB unit tests from .\test-phpUnit to .\tests folder.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9788 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
aada2366d1
commit
97470e4d40
99 changed files with 53 additions and 85 deletions
|
|
@ -1,49 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Base class for tests for MSSQL SQL syntax
|
||||
*/
|
||||
|
||||
class MssqlOnlineTest extends PHPUnit_Framework_TestCase {
|
||||
|
||||
protected $backupGlobals = FALSE;
|
||||
protected $backupStaticAttributes = FALSE;
|
||||
protected $preserveGlobalState = FALSE;
|
||||
|
||||
/**
|
||||
* Prepare runtime context - tell DB class that current DB is MSSQL
|
||||
*/
|
||||
protected function setUp() {
|
||||
$this->markTestSkipped();
|
||||
$oContext = &Context::getInstance();
|
||||
|
||||
$db_info->master_db = array('db_type' => 'mssql'
|
||||
,'db_port' => '3306'
|
||||
,'db_hostname' => 'PHENOMII\SQL2008EXPRESS'
|
||||
,'db_userid' => 'dba'
|
||||
,'db_password' => 'arniarules'
|
||||
,'db_database' => 'xe-15-db'
|
||||
,'db_table_prefix' => 'xe_');
|
||||
$db_info->slave_db = array(array('db_type' => 'mssql'
|
||||
,'db_port' => '3306'
|
||||
,'db_hostname' => 'PHENOMII\SQL2008EXPRESS'
|
||||
,'db_userid' => 'dba'
|
||||
,'db_password' => 'arniarules'
|
||||
,'db_database' => 'xe-15-db'
|
||||
,'db_table_prefix' => 'xe_'));
|
||||
$oContext->setDbInfo($db_info);
|
||||
|
||||
// remove cache dir
|
||||
FileHandler::removeDir( _XE_PATH_ . 'files/cache');
|
||||
|
||||
DB::getParser(true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Free resources - reset static DB and QueryParser
|
||||
*/
|
||||
protected function tearDown() {
|
||||
unset($GLOBALS['__DB__']);
|
||||
}
|
||||
}
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue