diff options
Diffstat (limited to 'tests/DatabaseTest.php')
-rw-r--r-- | tests/DatabaseTest.php | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/tests/DatabaseTest.php b/tests/DatabaseTest.php index edb785dd..db46ad60 100644 --- a/tests/DatabaseTest.php +++ b/tests/DatabaseTest.php @@ -1,23 +1,10 @@ <?php -require_once( 'PHPUnit.php' ); -require_once( '../includes/Defines.php' ); -require_once( '../includes/Database.php' ); -require_once( '../includes/GlobalFunctions.php' ); - -class DatabaseTest extends PHPUnit_TestCase { +class DatabaseTest extends PHPUnit_Framework_TestCase { var $db; - function DatabaseTest( $name ) { - $this->PHPUnit_TestCase( $name ); - } - function setUp() { - $this->db = new Database(); - } - - function tearDown() { - unset( $this->db ); + $this->db = wfGetDB( DB_SLAVE ); } function testAddQuotesNull() { @@ -90,4 +77,4 @@ class DatabaseTest extends PHPUnit_TestCase { } -?> + |