ActionVariablesIntegrationTest: Support JsonContent using tabs

Bug: T326065
Change-Id: I67c87484ea4ec23f703480c8d423b800c74f6518
(cherry picked from commit 80a8764c8d)
This commit is contained in:
Taavi Väänänen 2024-01-02 23:13:45 +02:00 committed by Reedy
parent e0f0bc7928
commit 3f8d112101

View file

@ -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 );
}
}