MediaWiki REL1_31
DBConnRefTest Class Reference

Wikimedia\Rdbms\DBConnRef. More...

Inheritance diagram for DBConnRefTest:
Collaboration diagram for DBConnRefTest:

Public Member Functions

 testConstruct ()
 
 testConstruct_failure ()
 
 testConstruct_params ()
 
 testDestruct ()
 
 testGetDomainID ()
 
 testGetWikiID ()
 
 testSelect ()
 
 testToString ()
 

Private Member Functions

 getDatabaseMock ()
 
 getDBConnRef (ILoadBalancer $lb=null)
 
 getLoadBalancerMock ()
 
 innerMethodForTestDestruct (ILoadBalancer $lb)
 

Detailed Description

Wikimedia\Rdbms\DBConnRef.

Definition at line 13 of file DBConnRefTest.php.

Member Function Documentation

◆ getDatabaseMock()

DBConnRefTest::getDatabaseMock ( )
private
Returns
IDatabase

Definition at line 41 of file DBConnRefTest.php.

Referenced by getDBConnRef(), getLoadBalancerMock(), testConstruct(), and testConstruct_params().

◆ getDBConnRef()

DBConnRefTest::getDBConnRef ( ILoadBalancer $lb = null)
private
Returns
IDatabase

Definition at line 55 of file DBConnRefTest.php.

References getDatabaseMock(), and getLoadBalancerMock().

Referenced by getLoadBalancerMock(), testSelect(), and testToString().

◆ getLoadBalancerMock()

DBConnRefTest::getLoadBalancerMock ( )
private
Returns
ILoadBalancer

Definition at line 20 of file DBConnRefTest.php.

References getDatabaseMock(), getDBConnRef(), and use.

Referenced by getDBConnRef(), testConstruct(), testConstruct_failure(), testDestruct(), and testToString().

◆ innerMethodForTestDestruct()

DBConnRefTest::innerMethodForTestDestruct ( ILoadBalancer $lb)
private

Definition at line 96 of file DBConnRefTest.php.

References DB_REPLICA, and Wikimedia\Rdbms\ILoadBalancer\getConnectionRef().

Referenced by testDestruct().

◆ testConstruct()

DBConnRefTest::testConstruct ( )

Definition at line 60 of file DBConnRefTest.php.

References getDatabaseMock(), and getLoadBalancerMock().

◆ testConstruct_failure()

DBConnRefTest::testConstruct_failure ( )

Definition at line 102 of file DBConnRefTest.php.

References getLoadBalancerMock().

◆ testConstruct_params()

DBConnRefTest::testConstruct_params ( )

Definition at line 67 of file DBConnRefTest.php.

References DB_MASTER, and getDatabaseMock().

◆ testDestruct()

DBConnRefTest::testDestruct ( )

Definition at line 87 of file DBConnRefTest.php.

References getLoadBalancerMock(), and innerMethodForTestDestruct().

◆ testGetDomainID()

DBConnRefTest::testGetDomainID ( )

Definition at line 121 of file DBConnRefTest.php.

References DB_REPLICA.

◆ testGetWikiID()

DBConnRefTest::testGetWikiID ( )

Definition at line 109 of file DBConnRefTest.php.

References DB_REPLICA.

◆ testSelect()

DBConnRefTest::testSelect ( )

Definition at line 133 of file DBConnRefTest.php.

References getDBConnRef().

◆ testToString()

DBConnRefTest::testToString ( )

Definition at line 139 of file DBConnRefTest.php.

References DB_MASTER, getDBConnRef(), and getLoadBalancerMock().


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