mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CookieWarning
synced 2024-11-23 22:03:41 +00:00
Use wgUseMediaWikiUIEverywhere true in tests
This seems to be the default for Jenkins CI. Bug: T201359 Change-Id: Ie436c601a95957b3c3fc2bfcce6d12bdef69e76a
This commit is contained in:
parent
beac8ee4bb
commit
1a2dd83c15
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue