From 18620a4499bfa5575e9bf4b3ecb842402d07a0dd Mon Sep 17 00:00:00 2001 From: Jon Robson Date: Thu, 29 Feb 2024 13:09:58 -0800 Subject: [PATCH] Default to day mode Bug: T358811 Change-Id: Iadf061b85e3cff4b2e1fc6bda6ff034b5f71b918 --- skin.json | 2 +- tests/phpunit/skins/SkinMinervaTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/skin.json b/skin.json index 068c2d5d0..6589019b2 100644 --- a/skin.json +++ b/skin.json @@ -596,7 +596,7 @@ } }, "DefaultUserOptions": { - "minerva-night-mode": 2 + "minerva-night-mode": 0 }, "manifest_version": 2 } diff --git a/tests/phpunit/skins/SkinMinervaTest.php b/tests/phpunit/skins/SkinMinervaTest.php index 2c02afdf2..8690e8de9 100644 --- a/tests/phpunit/skins/SkinMinervaTest.php +++ b/tests/phpunit/skins/SkinMinervaTest.php @@ -188,7 +188,7 @@ class SkinMinervaTest extends MediaWikiIntegrationTestCase { $skin = new SkinMinerva(); $classes = $skin->getHtmlElementAttributes()['class']; - $this->assertStringContainsString( 'skin-night-mode-clientpref-2', $classes ); + $this->assertStringContainsString( 'skin-night-mode-clientpref-0', $classes ); } /** @@ -218,7 +218,7 @@ class SkinMinervaTest extends MediaWikiIntegrationTestCase { $skin->setContext( $context ); $classes = $skin->getHtmlElementAttributes()['class']; - $this->assertStringContainsString( 'skin-night-mode-clientpref-2', $classes ); + $this->assertStringContainsString( 'skin-night-mode-clientpref-0', $classes ); } /**