Skip to content
Snippets Groups Projects
Commit 3d80c32d authored by catch's avatar catch
Browse files

Issue #3496319 by quietone: [random test failure]...

Issue #3496319 by quietone: [random test failure] CommentPreviewTest::testCommentPreview (follow-up)
parent 7aa26830
Branches
Tags
1 merge request!122353526426-warning-for-missing
Pipeline #505856 passed
Pipeline: drupal

#505859

    ......@@ -223,11 +223,11 @@ public function testTrackerUser(): void {
    // 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);
    \Drupal::keyvalue('user_hooks_test')->set('user_format_name_alter', TRUE);
    $this->drupalGet('user/' . $this->user->id() . '/activity');
    $this->assertSession()->assertEscaped('<em>' . $this->user->id() . '</em>');
    \Drupal::state()->set('user_hooks_test_user_format_name_alter_safe', TRUE);
    \Drupal::keyvalue('user_hooks_test')->set('user_format_name_alter_safe', TRUE);
    Cache::invalidateTags(['rendered']);
    $this->drupalGet('user/' . $this->user->id() . '/activity');
    $this->assertSession()->assertNoEscaped('<em>' . $this->user->id() . '</em>');
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment