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
rdbms: rename CONN_TRX_AUTO constant to CONN_TRX_AUTOCOMMIT
[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
e660265
..
b370508
100644
(file)
--- a/
tests/phpunit/includes/libs/rdbms/database/DBConnRefTest.php
+++ b/
tests/phpunit/includes/libs/rdbms/database/DBConnRefTest.php
@@
-10,7
+10,7
@@
use Wikimedia\Rdbms\ResultWrapper;
/**
* @covers Wikimedia\Rdbms\DBConnRef
*/
/**
* @covers Wikimedia\Rdbms\DBConnRef
*/
-class DBConnRefTest extends PHPUnit
_Framework_
TestCase {
+class DBConnRefTest extends PHPUnit
\Framework\
TestCase {
/**
* @return ILoadBalancer
/**
* @return ILoadBalancer
@@
-67,7
+67,7
@@
class DBConnRefTest extends PHPUnit_Framework_TestCase {
$lb->expects( $this->once() )
->method( 'getConnection' )
$lb->expects( $this->once() )
->method( 'getConnection' )
- ->with( DB_MASTER, [ 'test' ], 'dummy', ILoadBalancer::CONN_TRX_AUTO )
+ ->with( DB_MASTER, [ 'test' ], 'dummy', ILoadBalancer::CONN_TRX_AUTO
COMMIT
)
->willReturnCallback(
function () {
return $this->getDatabaseMock();
->willReturnCallback(
function () {
return $this->getDatabaseMock();
@@
-76,7
+76,7
@@
class DBConnRefTest extends PHPUnit_Framework_TestCase {
$ref = new DBConnRef(
$lb,
$ref = new DBConnRef(
$lb,
- [ DB_MASTER, [ 'test' ], 'dummy', ILoadBalancer::CONN_TRX_AUTO ]
+ [ DB_MASTER, [ 'test' ], 'dummy', ILoadBalancer::CONN_TRX_AUTO
COMMIT
]
);
$this->assertInstanceOf( ResultWrapper::class, $ref->select( 'whatever', '*' ) );
);
$this->assertInstanceOf( ResultWrapper::class, $ref->select( 'whatever', '*' ) );