dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Revison typo
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
page
/
WikiPageDbTestBase.php
diff --git
a/tests/phpunit/includes/page/WikiPageDbTestBase.php
b/tests/phpunit/includes/page/WikiPageDbTestBase.php
index
439bd38
..
298dc52
100644
(file)
--- a/
tests/phpunit/includes/page/WikiPageDbTestBase.php
+++ b/
tests/phpunit/includes/page/WikiPageDbTestBase.php
@@
-135,6
+135,9
@@
abstract class WikiPageDbTestBase extends MediaWikiLangTestCase {
}
$updater->saveRevision( CommentStoreComment::newUnsavedComment( "testing" ) );
}
$updater->saveRevision( CommentStoreComment::newUnsavedComment( "testing" ) );
+ if ( !$updater->wasSuccessful() ) {
+ $this->fail( $updater->getStatus()->getWikiText() );
+ }
return $page;
}
return $page;
}
@@
-2045,7
+2048,7
@@
more stuff
wfTimestamp( TS_UNIX, $initialRevision->getTimestamp() ) - 1
);
wfTimestamp( TS_UNIX, $initialRevision->getTimestamp() ) - 1
);
- $olderRevison = new Revision(
+ $olderRevis
i
on = new Revision(
[
'id' => 9989,
'page' => $page->getId(),
[
'id' => 9989,
'page' => $page->getId(),
@@
-2062,7
+2065,7
@@
more stuff
]
);
]
);
- $result = $page->updateIfNewerOn( $this->db, $olderRevison );
+ $result = $page->updateIfNewerOn( $this->db, $olderRevis
i
on );
$this->assertFalse( $result );
}
$this->assertFalse( $result );
}