From: daniel Date: Wed, 13 Jun 2012 15:43:07 +0000 (+0200) Subject: fixed LinksUpdateTest: must use transaction. X-Git-Tag: 1.31.0-rc.0~22097^2^2~101 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22sites_tous%22%29%20.%20%22?a=commitdiff_plain;h=e5044625e27e826d4b47e0bad39cc8c64ee83c4a;p=lhc%2Fweb%2Fwiklou.git fixed LinksUpdateTest: must use transaction. Change-Id: I9d80a9946a01bfa9245082aa29f1624c505d4201 --- diff --git a/tests/phpunit/includes/LinksUpdateTest.php b/tests/phpunit/includes/LinksUpdateTest.php index 494620015a..a50a2235e2 100644 --- a/tests/phpunit/includes/LinksUpdateTest.php +++ b/tests/phpunit/includes/LinksUpdateTest.php @@ -146,7 +146,9 @@ class LinksUpdateTest extends MediaWikiTestCase { protected function assertLinksUpdate( Title $title, ParserOutput $parserOutput, $table, $fields, $condition, Array $expectedRows ) { $update = new LinksUpdate( $title, $parserOutput ); + $update->beginTransaction(); $update->doUpdate(); + $update->commitTransaction(); $this->assertSelect( $table, $fields, $condition, $expectedRows ); }