mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-14 19:26:08 +00:00
bc193d41a7
`$this->createMock( User::class )` will return a mock User object with all fields defaulting to null and this will fail when the `onGetPreferences()` hook fires in CA since that gets consumed by `getFormDescriptor()` in PreferencesFactory. This patch changes the mock user object to a test user object and this is fine because it's already an integration test. Bug: T357854 Change-Id: I3d80fc1e59ff00a1a08def41c53d82bc093b6e00 |
||
---|---|---|
.. | ||
MathIntegrationTest.php | ||
ParserIntegrationTests.php | ||
PreferencesIntegrationTest.php |