Skip to content

Commit af9e4d7

Browse files
committed
fix for failing automated integration test
1 parent e8c5c23 commit af9e4d7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/integration/ErrorStateTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public function Status400TimeGateErrorResponseCommonTests(
3535
$uagent = "Memento-Mediawiki-Plugin/Test";
3636

3737
$curlCmd = "curl -v -s -A '$uagent' -b '$sessionCookieString' -k -i -H 'Accept-Datetime: bad-input' --url '$URIG'";
38+
#echo "cmd: [$curlCmd]\n";
3839
$response = `$curlCmd 2> $debugfile | tee "$outputfile"`;
3940

4041
$statusline = extractStatusLineFromResponse( $response );
@@ -59,6 +60,9 @@ public function Status400TimeGateErrorResponseCommonTests(
5960

6061
# To ensure that the error message actually exists in the output
6162
$expected = acquireFormattedI18NString( 'en', 'timegate-400-date' );
63+
64+
# TODO: this is a workaround, find a better solution
65+
$expected = str_replace("<br />", "<br/>", $expected);
6266
$this->assertStringMatchesFormat( "%A" . $expected . "%A", $entity );
6367
}
6468

@@ -117,6 +121,8 @@ public function Status400TimeMapErrorResponseCommonTests(
117121

118122
# To ensure that the error message actually exists in the output
119123
$expected = acquireFormattedI18NString( 'en', 'timemap-404-title' );
124+
125+
120126
$this->assertStringMatchesFormat( "%A" . $expected . "%A", $entity );
121127
}
122128

0 commit comments

Comments
 (0)