From e5044625e27e826d4b47e0bad39cc8c64ee83c4a Mon Sep 17 00:00:00 2001 From: daniel Date: Wed, 13 Jun 2012 17:43:07 +0200 Subject: [PATCH] fixed LinksUpdateTest: must use transaction. Change-Id: I9d80a9946a01bfa9245082aa29f1624c505d4201 --- tests/phpunit/includes/LinksUpdateTest.php | 2 ++ 1 file changed, 2 insertions(+) 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 ); } -- 2.20.1