From: Brent Garber Date: Mon, 21 Jan 2013 23:01:05 +0000 (+0000) Subject: Fix more UnitTests for databases that do not use integer timestamps X-Git-Tag: 1.31.0-rc.0~20417^2 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=ba4b7bc35bca179599e8391d758563295f832500;p=lhc%2Fweb%2Fwiklou.git Fix more UnitTests for databases that do not use integer timestamps Change-Id: I6f8b19aa6e6a9efc3320bb18fa8c7ec8b72a0c17 --- diff --git a/tests/phpunit/includes/EditPageTest.php b/tests/phpunit/includes/EditPageTest.php index 36fde854d7..d2e4c4695b 100644 --- a/tests/phpunit/includes/EditPageTest.php +++ b/tests/phpunit/includes/EditPageTest.php @@ -48,7 +48,7 @@ class EditPageTest extends MediaWikiTestCase { $dbw = wfGetDB( DB_MASTER ); $dbw->update( 'revision', - array( 'rev_timestamp' => $timestamp ), + array( 'rev_timestamp' => $dbw->timestamp( $timestamp ) ), array( 'rev_id' => $page->getLatest() ) ); $page->clear(); diff --git a/tests/phpunit/includes/api/ApiEditPageTest.php b/tests/phpunit/includes/api/ApiEditPageTest.php index eaab30010a..5f8cee6d69 100644 --- a/tests/phpunit/includes/api/ApiEditPageTest.php +++ b/tests/phpunit/includes/api/ApiEditPageTest.php @@ -341,7 +341,7 @@ class ApiEditPageTest extends ApiTestCase { $dbw = wfGetDB( DB_MASTER ); $dbw->update( 'revision', - array( 'rev_timestamp' => $timestamp ), + array( 'rev_timestamp' => $dbw->timestamp( $timestamp ) ), array( 'rev_id' => $page->getLatest() ) ); $page->clear();