dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Type hint against LinkTarget in WatchedItemStore"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
libs
/
rdbms
/
database
/
DBConnRefTest.php
diff --git
a/tests/phpunit/includes/libs/rdbms/database/DBConnRefTest.php
b/tests/phpunit/includes/libs/rdbms/database/DBConnRefTest.php
index
833ac2c
..
fafeb4e
100644
(file)
--- a/
tests/phpunit/includes/libs/rdbms/database/DBConnRefTest.php
+++ b/
tests/phpunit/includes/libs/rdbms/database/DBConnRefTest.php
@@
-4,7
+4,7
@@
use Wikimedia\Rdbms\IDatabase;
use Wikimedia\Rdbms\DBConnRef;
use Wikimedia\Rdbms\FakeResultWrapper;
use Wikimedia\Rdbms\ILoadBalancer;
use Wikimedia\Rdbms\DBConnRef;
use Wikimedia\Rdbms\FakeResultWrapper;
use Wikimedia\Rdbms\ILoadBalancer;
-use Wikimedia\Rdbms\ResultWrapper;
+use Wikimedia\Rdbms\
I
ResultWrapper;
/**
* @covers Wikimedia\Rdbms\DBConnRef
/**
* @covers Wikimedia\Rdbms\DBConnRef
@@
-75,7
+75,7
@@
class DBConnRefTest extends PHPUnit\Framework\TestCase {
$lb = $this->getLoadBalancerMock();
$ref = new DBConnRef( $lb, $this->getDatabaseMock(), DB_MASTER );
$lb = $this->getLoadBalancerMock();
$ref = new DBConnRef( $lb, $this->getDatabaseMock(), DB_MASTER );
- $this->assertInstanceOf( ResultWrapper::class, $ref->select( 'whatever', '*' ) );
+ $this->assertInstanceOf(
I
ResultWrapper::class, $ref->select( 'whatever', '*' ) );
}
public function testConstruct_params() {
}
public function testConstruct_params() {
@@
-96,7
+96,7
@@
class DBConnRefTest extends PHPUnit\Framework\TestCase {
DB_MASTER
);
DB_MASTER
);
- $this->assertInstanceOf( ResultWrapper::class, $ref->select( 'whatever', '*' ) );
+ $this->assertInstanceOf(
I
ResultWrapper::class, $ref->select( 'whatever', '*' ) );
$this->assertEquals( DB_MASTER, $ref->getReferenceRole() );
$ref2 = new DBConnRef(
$this->assertEquals( DB_MASTER, $ref->getReferenceRole() );
$ref2 = new DBConnRef(
@@
-119,7
+119,7
@@
class DBConnRefTest extends PHPUnit\Framework\TestCase {
private function innerMethodForTestDestruct( ILoadBalancer $lb ) {
$ref = $lb->getConnectionRef( DB_REPLICA );
private function innerMethodForTestDestruct( ILoadBalancer $lb ) {
$ref = $lb->getConnectionRef( DB_REPLICA );
- $this->assertInstanceOf( ResultWrapper::class, $ref->select( 'whatever', '*' ) );
+ $this->assertInstanceOf(
I
ResultWrapper::class, $ref->select( 'whatever', '*' ) );
}
public function testConstruct_failure() {
}
public function testConstruct_failure() {
@@
-150,7
+150,7
@@
class DBConnRefTest extends PHPUnit\Framework\TestCase {
public function testSelect() {
// select should get passed through normally
$ref = $this->getDBConnRef();
public function testSelect() {
// select should get passed through normally
$ref = $this->getDBConnRef();
- $this->assertInstanceOf( ResultWrapper::class, $ref->select( 'whatever', '*' ) );
+ $this->assertInstanceOf(
I
ResultWrapper::class, $ref->select( 'whatever', '*' ) );
}
public function testToString() {
}
public function testToString() {