From: X! Date: Tue, 28 Dec 2010 18:47:09 +0000 (+0000) Subject: NewDBTest does not need the function anymore. X-Git-Tag: 1.31.0-rc.0~33024 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/Boston?a=commitdiff_plain;h=d0ee386dca9508deb28aa3cbd5b8482f2d18ee80;p=lhc%2Fweb%2Fwiklou.git NewDBTest does not need the function anymore. Fixed bug that caused a catchable fatal error (fix from r79117) --- diff --git a/tests/phpunit/includes/NewDBTest.php b/tests/phpunit/includes/NewDBTest.php index 02d9bb8fb8..487549c099 100644 --- a/tests/phpunit/includes/NewDBTest.php +++ b/tests/phpunit/includes/NewDBTest.php @@ -19,8 +19,6 @@ class NewDBTest extends MediaWikiTestCase { User::newFromName( 'UTSysop' ) ); } - function needsDB() { return true; } - function testBootstrapCreation() { $article = new Article( Title::newFromText("UTPage") ); diff --git a/tests/phpunit/suites/ExtensionsTestSuite.php b/tests/phpunit/suites/ExtensionsTestSuite.php index 4f02a693ce..4bf3542799 100644 --- a/tests/phpunit/suites/ExtensionsTestSuite.php +++ b/tests/phpunit/suites/ExtensionsTestSuite.php @@ -26,7 +26,7 @@ class ExtensionsTestSuite extends PHPUnit_Framework_TestSuite { * Needed to avoid warnings like 'No tests found in class "ExtensionsTestSuite".' * when no extensions with tests are used. */ -class DummyExtensionsTest extends MediaWikiTestCase { +class DummyExtensionsTest extends PHPUnit_Framework_TestCase { public function testNothing() { }