MediaWiki  master
MediaWikiTestCaseTest Class Reference

MediaWikiTestCase MediaWikiTestCaseTest Database. More...

Inheritance diagram for MediaWikiTestCaseTest:
Collaboration diagram for MediaWikiTestCaseTest:

Public Member Functions

 provideExistingKeysAndNewValues ()
 
 testCopyTestData ()
 MediaWikiTestCase::setupDatabaseWithTestPrefix MediaWikiTestCase::copyTestData. More...
 
 testLoggersAreRestoredOnTearDown_replacingExistingLogger ()
 MediaWikiTestCase::setLogger MediaWikiTestCase::restoreLoggers. More...
 
 testLoggersAreRestoredOnTearDown_replacingNonExistingLogger ()
 MediaWikiTestCase::setLogger MediaWikiTestCase::restoreLoggers. More...
 
 testLoggersAreRestoredOnTearDown_replacingSameLoggerTwice ()
 MediaWikiTestCase::setLogger MediaWikiTestCase::restoreLoggers. More...
 
 testOverrideMwServices ()
 
 testResetServices ()
 
 testSetGlobalsAreRestoredOnTearDown ( $globalKey, $newValue)
 provideExistingKeysAndNewValues More...
 
 testSetNonExistentGlobalsAreUnsetOnTearDown ()
 MediaWikiTestCase::setMwGlobals MediaWikiTestCase::tearDown. More...
 
 testSetService ()
 

Static Public Member Functions

static static setUpBeforeClass ()
 
static tearDownAfterClass ()
 

Static Private Attributes

static $startGlobals
 

Detailed Description

MediaWikiTestCase MediaWikiTestCaseTest Database.

Author
Addshore

Definition at line 15 of file MediaWikiTestCaseTest.php.

Member Function Documentation

◆ provideExistingKeysAndNewValues()

MediaWikiTestCaseTest::provideExistingKeysAndNewValues ( )

Definition at line 38 of file MediaWikiTestCaseTest.php.

References as.

◆ setUpBeforeClass()

static static MediaWikiTestCaseTest::setUpBeforeClass ( )
static

Definition at line 24 of file MediaWikiTestCaseTest.php.

References $GLOBALS, $value, and as.

◆ tearDownAfterClass()

static MediaWikiTestCaseTest::tearDownAfterClass ( )
static

Definition at line 31 of file MediaWikiTestCaseTest.php.

References $GLOBALS, $value, and as.

◆ testCopyTestData()

MediaWikiTestCaseTest::testCopyTestData ( )

MediaWikiTestCase::setupDatabaseWithTestPrefix MediaWikiTestCase::copyTestData.

Definition at line 158 of file MediaWikiTestCaseTest.php.

References $value, and DB_REPLICA.

◆ testLoggersAreRestoredOnTearDown_replacingExistingLogger()

MediaWikiTestCaseTest::testLoggersAreRestoredOnTearDown_replacingExistingLogger ( )

MediaWikiTestCase::setLogger MediaWikiTestCase::restoreLoggers.

Definition at line 115 of file MediaWikiTestCaseTest.php.

References class.

◆ testLoggersAreRestoredOnTearDown_replacingNonExistingLogger()

MediaWikiTestCaseTest::testLoggersAreRestoredOnTearDown_replacingNonExistingLogger ( )

MediaWikiTestCase::setLogger MediaWikiTestCase::restoreLoggers.

Definition at line 130 of file MediaWikiTestCaseTest.php.

References class.

◆ testLoggersAreRestoredOnTearDown_replacingSameLoggerTwice()

MediaWikiTestCaseTest::testLoggersAreRestoredOnTearDown_replacingSameLoggerTwice ( )

MediaWikiTestCase::setLogger MediaWikiTestCase::restoreLoggers.

Definition at line 144 of file MediaWikiTestCaseTest.php.

References class.

◆ testOverrideMwServices()

MediaWikiTestCaseTest::testOverrideMwServices ( )

Definition at line 90 of file MediaWikiTestCaseTest.php.

◆ testResetServices()

MediaWikiTestCaseTest::testResetServices ( )

◆ testSetGlobalsAreRestoredOnTearDown()

MediaWikiTestCaseTest::testSetGlobalsAreRestoredOnTearDown (   $globalKey,
  $newValue 
)

provideExistingKeysAndNewValues

MediaWikiTestCase::setMwGlobals MediaWikiTestCase::tearDown

Definition at line 53 of file MediaWikiTestCaseTest.php.

References $GLOBALS.

◆ testSetNonExistentGlobalsAreUnsetOnTearDown()

MediaWikiTestCaseTest::testSetNonExistentGlobalsAreUnsetOnTearDown ( )

MediaWikiTestCase::setMwGlobals MediaWikiTestCase::tearDown.

Definition at line 74 of file MediaWikiTestCaseTest.php.

References $GLOBALS.

◆ testSetService()

MediaWikiTestCaseTest::testSetService ( )

Definition at line 97 of file MediaWikiTestCaseTest.php.

References class.

Member Data Documentation

◆ $startGlobals

MediaWikiTestCaseTest::$startGlobals
staticprivate
Initial value:
= [
'MediaWikiTestCaseTestGLOBAL-ExistingString' => 'foo'

Definition at line 17 of file MediaWikiTestCaseTest.php.


The documentation for this class was generated from the following file: