MediaWiki
1.30.2
|
Public Member Functions | |
testAddQuotes ( $input, $expected) | |
provideAddQuotes Wikimedia\Rdbms\Database::addQuotes More... | |
testFlagSetting () | |
Wikimedia\Rdbms\Database::getFlag Wikimedia\Rdbms\Database::setFlag Wikimedia\Rdbms\Database::restoreFlags. More... | |
testFlushSnapshot () | |
Wikimedia\Rdbms\Database::flushSnapshot. More... | |
testGetScopedLock () | |
testMutators () | |
Wikimedia\Rdbms\Database::tablePrefix Wikimedia\Rdbms\Database::dbSchema. More... | |
testTableName ( $expected, $table, $format, array $alias=null) | |
provideTableName Wikimedia\Rdbms\Database::tableName More... | |
testTransactionIdle () | |
Wikimedia\Rdbms\Database::onTransactionIdle Wikimedia\Rdbms\Database::runOnTransactionIdleCallbacks. More... | |
testTransactionListener () | |
Wikimedia\Rdbms\Database::setTransactionListener. More... | |
testTransactionPreCommitOrIdle () | |
Wikimedia\Rdbms\Database::onTransactionPreCommitOrIdle Wikimedia\Rdbms\Database::runOnTransactionPreCommitCallbacks. More... | |
testTransactionPreCommitOrIdle_TRX () | |
Wikimedia\Rdbms\Database::onTransactionPreCommitOrIdle Wikimedia\Rdbms\Database::runOnTransactionPreCommitCallbacks. More... | |
testTransactionResolution () | |
Wikimedia\Rdbms\Database::onTransactionResolution Wikimedia\Rdbms\Database::runOnTransactionIdleCallbacks. More... | |
Static Public Member Functions | |
static | provideAddQuotes () |
static | provideTableName () |
Protected Member Functions | |
setUp () | |
Private Member Functions | |
badLockingMethodExplicit (IDatabase $db) | |
badLockingMethodImplicit (IDatabase $db) | |
getMockDB ( $methods=[]) | |
Use this mock instead of DatabaseTestHelper for cases where DatabaseTestHelper is too inflexibile due to mocking too much or being too restrictive about fname matching (e.g. More... | |
Definition at line 8 of file DatabaseTest.php.
|
private |
Definition at line 354 of file DatabaseTest.php.
References Wikimedia\Rdbms\IDatabase\begin(), and Wikimedia\Rdbms\IDatabase\getScopedLockAndFlush().
Referenced by testGetScopedLock().
|
private |
Definition at line 348 of file DatabaseTest.php.
References Wikimedia\Rdbms\IDatabase\getScopedLockAndFlush(), and Wikimedia\Rdbms\IDatabase\query().
Referenced by testGetScopedLock().
|
private |
Use this mock instead of DatabaseTestHelper for cases where DatabaseTestHelper is too inflexibile due to mocking too much or being too restrictive about fname matching (e.g.
for tests that assert behaviour when the name is a mismatch, we need to catch the error here instead of there).
Definition at line 275 of file DatabaseTest.php.
References class.
Referenced by testFlushSnapshot(), testGetScopedLock(), testTransactionPreCommitOrIdle(), and testTransactionPreCommitOrIdle_TRX().
|
static |
Definition at line 14 of file DatabaseTest.php.
|
static |
Definition at line 32 of file DatabaseTest.php.
|
protected |
Definition at line 10 of file DatabaseTest.php.
DatabaseTest::testAddQuotes | ( | $input, | |
$expected | |||
) |
provideAddQuotes Wikimedia\Rdbms\Database::addQuotes
Definition at line 28 of file DatabaseTest.php.
References $input.
DatabaseTest::testFlagSetting | ( | ) |
DatabaseTest::testFlushSnapshot | ( | ) |
Wikimedia\Rdbms\Database::flushSnapshot.
Definition at line 309 of file DatabaseTest.php.
References DBO_TRX, and getMockDB().
DatabaseTest::testGetScopedLock | ( | ) |
Definition at line 325 of file DatabaseTest.php.
References $e, badLockingMethodExplicit(), badLockingMethodImplicit(), DBO_TRX, and getMockDB().
DatabaseTest::testMutators | ( | ) |
Wikimedia\Rdbms\Database::tablePrefix Wikimedia\Rdbms\Database::dbSchema.
Definition at line 404 of file DatabaseTest.php.
DatabaseTest::testTableName | ( | $expected, | |
$table, | |||
$format, | |||
array | $alias = null |
||
) |
provideTableName Wikimedia\Rdbms\Database::tableName
Definition at line 87 of file DatabaseTest.php.
DatabaseTest::testTransactionIdle | ( | ) |
DatabaseTest::testTransactionListener | ( | ) |
Wikimedia\Rdbms\Database::setTransactionListener.
Definition at line 237 of file DatabaseTest.php.
References use.
DatabaseTest::testTransactionPreCommitOrIdle | ( | ) |
Wikimedia\Rdbms\Database::onTransactionPreCommitOrIdle Wikimedia\Rdbms\Database::runOnTransactionPreCommitCallbacks.
Definition at line 143 of file DatabaseTest.php.
References DBO_TRX, getMockDB(), and use.
DatabaseTest::testTransactionPreCommitOrIdle_TRX | ( | ) |
Wikimedia\Rdbms\Database::onTransactionPreCommitOrIdle Wikimedia\Rdbms\Database::runOnTransactionPreCommitCallbacks.
Definition at line 176 of file DatabaseTest.php.
References DBO_TRX, getMockDB(), and use.
DatabaseTest::testTransactionResolution | ( | ) |