Skip to content

Commit 36784b8

Browse files
committed
use new expectLogMessage to check condition tested in test_savesequence4()
1 parent 38b7022 commit 36784b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

_test/tests/inc/common_saveWikiText.test.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ function test_savesequence4() {
527527

528528
// 4.3 externally edit as a result of a file which has older timestamp than last revision
529529
unlink($file);
530-
file_put_contents($file, 'teststring fake 1 hout past');
530+
file_put_contents($file, 'teststring fake 1 hour past');
531531
touch($file, filemtime($file) -3600); // change file modification time to 1 hour past
532532
clearstatcache();
533533
$newmod = filemtime($file);
@@ -540,6 +540,7 @@ function test_savesequence4() {
540540
'sizechange' => 16,
541541
);
542542

543+
$this->expectLogMessage('current file modification time is older than last');
543544
$pagelog = new PageChangeLog($page);
544545
$this->checkChangeLogAfterExternalEdit($pagelog, $expectedRevs, $expect, $expectExternal);
545546
}

0 commit comments

Comments
 (0)