Fix more UnitTests for databases that do not use integer timestamps
authorBrent Garber <overlordq@gmail.com>
Mon, 21 Jan 2013 23:01:05 +0000 (23:01 +0000)
committerBrent Garber <overlordq@gmail.com>
Fri, 8 Mar 2013 19:51:52 +0000 (19:51 +0000)
Change-Id: I6f8b19aa6e6a9efc3320bb18fa8c7ec8b72a0c17

tests/phpunit/includes/EditPageTest.php
tests/phpunit/includes/api/ApiEditPageTest.php

index 36fde85..d2e4c46 100644 (file)
@@ -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();
index eaab300..5f8cee6 100644 (file)
@@ -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();