mediawiki-extensions-Math/tests/phpunit/integration
Derick Alangi bc193d41a7
PreferencesIntegrationTest: CA will fail on null User objects
`$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
2024-02-19 13:21:40 +03:00
..
MathIntegrationTest.php Provide static Factory Class for Math related services 2022-07-22 18:59:11 +02:00
ParserIntegrationTests.php Remove functional dead code about PNG images 2023-10-30 10:46:08 +00:00
PreferencesIntegrationTest.php PreferencesIntegrationTest: CA will fail on null User objects 2024-02-19 13:21:40 +03:00