core/modules/tracker/src/Tests/TrackerTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/modules/tracker/src/Tests/TrackerTest.php b/core/modules/tracker/src/Tests/TrackerTest.php index cb9995f..425c4a1 100644 --- a/core/modules/tracker/src/Tests/TrackerTest.php +++ b/core/modules/tracker/src/Tests/TrackerTest.php @@ -213,11 +213,13 @@ function testTrackerUser() { // Test escaping of title on user's tracker tab. \Drupal::service('module_installer')->install(['user_hooks_test']); + Cache::invalidateTags(['rendered']); \Drupal::state()->set('user_hooks_test_user_format_name_alter', TRUE); $this->drupalGet('user/' . $this->user->id() . '/activity'); $this->assertEscaped('' . $this->user->id() . ''); \Drupal::state()->set('user_hooks_test_user_format_name_alter_safe', TRUE); + Cache::invalidateTags(['rendered']); $this->drupalGet('user/' . $this->user->id() . '/activity'); $this->assertNoEscaped('' . $this->user->id() . ''); $this->assertRaw('' . $this->user->id() . '');