diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2007-09-14 13:18:58 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2007-09-14 13:18:58 +0200 |
commit | 8f416baead93a48e5799e44b8bd2e2c4859f4e04 (patch) | |
tree | cd47ac55eb80a39e3225e8b4f3161b88ea16c2cf /tests/DatabaseTest.php | |
parent | d7d08bd1a17618c7d77a6b9b2989e9f7293d6ed6 (diff) |
auf Version 1.11 aktualisiert; Login-Bug behoben
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 { } -?> + |