MediaWiki REL1_33
|
Wikimedia\Rdbms\DBConnRef. More...
Public Member Functions | |
provideRoleExceptions () | |
testClose () | |
Wikimedia\Rdbms\DBConnRef::close \Wikimedia\Rdbms\DBUnexpectedError. | |
testConstruct () | |
testConstruct_failure () | |
testConstruct_params () | |
testDestruct () | |
testGetDomainID () | |
Wikimedia\Rdbms\DBConnRef::getDomainId. | |
testGetReferenceRole () | |
Wikimedia\Rdbms\DBConnRef::getReferenceRole. | |
testRoleExceptions ( $method, $args) | |
Wikimedia\Rdbms\DBConnRef::getReferenceRole Wikimedia\Rdbms\DBReadOnlyRoleError provideRoleExceptions. | |
testSelect () | |
Wikimedia\Rdbms\DBConnRef::select. | |
testToString () | |
Private Member Functions | |
getDatabaseMock () | |
getDBConnRef (ILoadBalancer $lb=null) | |
getLoadBalancerMock () | |
innerMethodForTestDestruct (ILoadBalancer $lb) | |
Wikimedia\Rdbms\DBConnRef.
Definition at line 13 of file DBConnRefTest.php.
|
private |
Definition at line 42 of file DBConnRefTest.php.
Referenced by getDBConnRef(), getLoadBalancerMock(), testConstruct(), and testConstruct_params().
|
private |
Definition at line 76 of file DBConnRefTest.php.
References DB_MASTER, getDatabaseMock(), and getLoadBalancerMock().
Referenced by getLoadBalancerMock(), testSelect(), and testToString().
|
private |
Definition at line 21 of file DBConnRefTest.php.
References and(), getDatabaseMock(), getDBConnRef(), and use.
Referenced by getDBConnRef(), testClose(), testConstruct(), testConstruct_failure(), testDestruct(), testGetReferenceRole(), testRoleExceptions(), and testToString().
|
private |
Definition at line 126 of file DBConnRefTest.php.
References and(), DB_REPLICA, and Wikimedia\Rdbms\ILoadBalancer\getConnectionRef().
Referenced by testDestruct().
DBConnRefTest::provideRoleExceptions | ( | ) |
Definition at line 211 of file DBConnRefTest.php.
DBConnRefTest::testClose | ( | ) |
Wikimedia\Rdbms\DBConnRef::close \Wikimedia\Rdbms\DBUnexpectedError.
Definition at line 176 of file DBConnRefTest.php.
References DB_MASTER, DB_REPLICA, and getLoadBalancerMock().
DBConnRefTest::testConstruct | ( | ) |
Definition at line 81 of file DBConnRefTest.php.
References and(), DB_MASTER, getDatabaseMock(), and getLoadBalancerMock().
DBConnRefTest::testConstruct_failure | ( | ) |
Definition at line 132 of file DBConnRefTest.php.
References and(), DB_REPLICA, and getLoadBalancerMock().
DBConnRefTest::testConstruct_params | ( | ) |
Definition at line 88 of file DBConnRefTest.php.
References and(), DB_MASTER, DB_REPLICA, and getDatabaseMock().
DBConnRefTest::testDestruct | ( | ) |
Definition at line 117 of file DBConnRefTest.php.
References and(), getLoadBalancerMock(), and innerMethodForTestDestruct().
DBConnRefTest::testGetDomainID | ( | ) |
Wikimedia\Rdbms\DBConnRef::getDomainId.
Definition at line 142 of file DBConnRefTest.php.
References and(), and DB_REPLICA.
DBConnRefTest::testGetReferenceRole | ( | ) |
Wikimedia\Rdbms\DBConnRef::getReferenceRole.
Definition at line 185 of file DBConnRefTest.php.
References and(), DB_MASTER, DB_REPLICA, and getLoadBalancerMock().
DBConnRefTest::testRoleExceptions | ( | $method, | |
$args ) |
Wikimedia\Rdbms\DBConnRef::getReferenceRole Wikimedia\Rdbms\DBReadOnlyRoleError provideRoleExceptions.
Definition at line 205 of file DBConnRefTest.php.
References $args, DB_REPLICA, and getLoadBalancerMock().
DBConnRefTest::testSelect | ( | ) |
Wikimedia\Rdbms\DBConnRef::select.
Definition at line 157 of file DBConnRefTest.php.
References and(), and getDBConnRef().
DBConnRefTest::testToString | ( | ) |
Definition at line 163 of file DBConnRefTest.php.
References and(), DB_MASTER, getDBConnRef(), and getLoadBalancerMock().