diff --git a/core/modules/search/src/Tests/SearchNodePunctuationTest.php b/core/modules/search/src/Tests/SearchNodePunctuationTest.php index 6f1c91a..c3c4d20 100644 --- a/core/modules/search/src/Tests/SearchNodePunctuationTest.php +++ b/core/modules/search/src/Tests/SearchNodePunctuationTest.php @@ -26,7 +26,7 @@ protected function setUp() { node_access_rebuild(); // Create a test user and log in. - $this->testUser = $this->drupalCreateUser(array('access content', 'search content', 'use advanced search')); + $this->testUser = $this->drupalCreateUser(array('access content', 'search content', 'use advanced search', 'access user profiles')); $this->drupalLogin($this->testUser); } @@ -47,5 +47,9 @@ function testPhraseSearchPunctuation() { $edit = array('keys' => '"bunny\'s"'); $this->drupalPostForm('search/node', $edit, t('Search')); $this->assertText($node->label()); + + // Check if the author is linked correctly to the user profile page. + $username = $node->getOwner()->getUsername(); + $this->assertLink($username); } }