r44722 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44721‎ | r44722 | r44723 >
Date:18:22, 17 December 2008
Author:ialex
Status:ok
Tags:
Comment:
Fix tests so that they can work with Configure extension or some other special config
Modified paths:
  • /trunk/phase3/t/inc/Database.t (modified) (history)
  • /trunk/phase3/t/inc/Global.t (modified) (history)

Diff [purge]

Index: trunk/phase3/t/inc/Global.t
@@ -5,13 +5,13 @@
66 require 't/Test.php';
77
88 require 'includes/Defines.php';
 9+require 'StartProfiler.php';
 10+require 'includes/AutoLoader.php';
911 require 'LocalSettings.php';
 12+require 'includes/Setup.php';
1013
11 -plan( 48 );
 14+plan( 46 );
1215
13 -require_ok( 'includes/ProfilerStub.php' );
14 -require_ok( 'includes/GlobalFunctions.php' );
15 -
1616 $wgReadOnly = null;
1717 $wgReadOnlyFile = tempnam(wfTempDir(), "mwtest_readonly");
1818 unlink( $wgReadOnlyFile );
Index: trunk/phase3/t/inc/Database.t
@@ -5,15 +5,13 @@
66 require 't/Test.php';
77
88 require 'includes/Defines.php';
 9+require 'StartProfiler.php';
 10+require 'includes/AutoLoader.php';
911 require 'LocalSettings.php';
 12+require 'includes/Setup.php';
1013
11 -plan( 13 );
 14+plan( 9 );
1215
13 -require_ok( 'includes/ProfilerStub.php' );
14 -require_ok( 'includes/GlobalFunctions.php' );
15 -require_ok( 'includes/Exception.php' );
16 -require_ok( 'includes/db/Database.php' );
17 -
1816 $db = new Database( $wgDBserver, $wgDBuser, $wgDBpassword );
1917
2018 cmp_ok( $db->addQuotes( NULL ), '==',

Status & tagging log