+ // Ensure the formatted name is displayed when expected.
+ $this->drupalGet('user/' . $user1->id());
+ $this->assertSession()->responseContains($user1->getDisplayName());
+ $this->assertSession()->titleEquals(strip_tags($user1->getDisplayName()) . ' | Drupal');
+