Use wgUseMediaWikiUIEverywhere true in tests

This seems to be the default for Jenkins CI.

Bug: T201359
Change-Id: Ie436c601a95957b3c3fc2bfcce6d12bdef69e76a
This commit is contained in:
Florian Schmidt 2018-08-06 22:22:32 +02:00
parent beac8ee4bb
commit 1a2dd83c15

View file

@ -39,6 +39,7 @@ class HooksTest extends MediaWikiLangTestCase {
'wgCookieWarningEnabled' => $enabled,
'wgCookieWarningMoreUrl' => $morelinkConfig,
'wgCookieWarningForCountryCodes' => false,
'wgUseMediaWikiUIEverywhere' => true,
] );
if ( $morelinkCookieWarningMsg ) {
$title = Title::newFromText( 'cookiewarning-more-link', NS_MEDIAWIKI );
@ -65,7 +66,7 @@ class HooksTest extends MediaWikiLangTestCase {
// @codingStandardsIgnoreStart Generic.Files.LineLength
$expected =
str_replace( '$1', $expectedLink,
'<div class="mw-cookiewarning-container banner-container"><div class="mw-cookiewarning-text"><span>Cookies help us deliver our services. By using our services, you agree to our use of cookies.</span>$1<form method="POST"><input name="disablecookiewarning" class="mw-cookiewarning-dismiss" type="submit" value="OK"/></form></div></div>' );
'<div class="mw-cookiewarning-container banner-container"><div class="mw-cookiewarning-text"><span>Cookies help us deliver our services. By using our services, you agree to our use of cookies.</span>$1<form method="POST"><input name="disablecookiewarning" class="mw-cookiewarning-dismiss mw-ui-button" type="submit" value="OK"/></form></div></div>' );
// @codingStandardsIgnoreEnd
}
$this->assertEquals( $expected, $headElement );