mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
ActionVariablesIntegrationTest: Support JsonContent using tabs
Bug: T326065
Change-Id: I67c87484ea4ec23f703480c8d423b800c74f6518
(cherry picked from commit 80a8764c8d
)
This commit is contained in:
parent
e0f0bc7928
commit
3f8d112101
|
@ -126,6 +126,12 @@ class ActionVariablesIntegrationTest extends ApiTestCase {
|
|||
$this->assertStringContainsString( $needle, $actual, 'Checking new_html' );
|
||||
}
|
||||
} else {
|
||||
if ( is_string( $actual ) ) {
|
||||
// TODO: remove and fix expected values once
|
||||
// https://gerrit.wikimedia.org/r/c/mediawiki/core/+/987191/ has been merged
|
||||
$actual = str_replace( "\t", ' ', $actual );
|
||||
}
|
||||
|
||||
$this->assertSame( $value, $actual, $var );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue