dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca58ab4
)
Fix transaction warnings on test cleanup rollback()
author
Aaron Schulz
<aschulz@wikimedia.org>
Wed, 21 Oct 2015 19:13:22 +0000
(12:13 -0700)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Wed, 21 Oct 2015 19:13:22 +0000
(12:13 -0700)
Change-Id: I85f607c7562474d57f515a947181884fccae735c
tests/phpunit/MediaWikiTestCase.php
patch
|
blob
|
history
diff --git
a/tests/phpunit/MediaWikiTestCase.php
b/tests/phpunit/MediaWikiTestCase.php
index
8af1428
..
9e4a984
100644
(file)
--- a/
tests/phpunit/MediaWikiTestCase.php
+++ b/
tests/phpunit/MediaWikiTestCase.php
@@
-207,7
+207,7
@@
abstract class MediaWikiTestCase extends PHPUnit_Framework_TestCase {
if ( $this->needsDB() && $this->db ) {
// Clean up open transactions
while ( $this->db->trxLevel() > 0 ) {
- $this->db->rollback();
+ $this->db->rollback(
__METHOD__, 'flush'
);
}
}
@@
-241,7
+241,7
@@
abstract class MediaWikiTestCase extends PHPUnit_Framework_TestCase {
if ( $this->needsDB() && $this->db ) {
// Clean up open transactions
while ( $this->db->trxLevel() > 0 ) {
- $this->db->rollback();
+ $this->db->rollback(
__METHOD__, 'flush'
);
}
}