diff --git a/core/modules/user/tests/src/Kernel/UserTemplateTest.php b/core/modules/user/tests/src/Kernel/UserTemplateTest.php index fd66430727..a216ae0aee 100644 --- a/core/modules/user/tests/src/Kernel/UserTemplateTest.php +++ b/core/modules/user/tests/src/Kernel/UserTemplateTest.php @@ -165,6 +165,7 @@ protected function renderUserName(array $build, UserInterface $user) { $user->testAccessAddCacheTags, $user->getCacheTags() ); + sort($expected_cache_tags); $this->assertEquals($expected_cache_tags, $build['#cache']['tags'], 'Cache tags found for user'); return $result; }