diff --git a/core/modules/language/tests/src/Unit/ConfigurableLanguageManagerTest.php b/core/modules/language/tests/src/Unit/ConfigurableLanguageManagerTest.php index 11d8b48..8c8aada 100644 --- a/core/modules/language/tests/src/Unit/ConfigurableLanguageManagerTest.php +++ b/core/modules/language/tests/src/Unit/ConfigurableLanguageManagerTest.php @@ -135,9 +135,9 @@ public function testCurrentLanguageShouldSupportRecursion() { $language_negotiation_method_id = $config_id; // Mock the default language. Note that we have to use PHPUnit mocks for the - // languages, as Prophecy's method mocks will change their own state. During - // a custom array sort, this would trigger PHP "Array was modified by the - // user comparison function" errors. + // languages, as Prophecy's mocks will change their own state when their + // methods are called. During a custom array sort, this would trigger PHP + // "Array was modified by the user comparison function" errors. $default_language = $this->getMock(LanguageInterface::class); $this->defaultLanguage->get()->willReturn($default_language);