comparison core/modules/search/tests/src/Functional/SearchNodePunctuationTest.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
52 $edit = ['keys' => '"bunny\'s"']; 52 $edit = ['keys' => '"bunny\'s"'];
53 $this->drupalPostForm('search/node', $edit, t('Search')); 53 $this->drupalPostForm('search/node', $edit, t('Search'));
54 $this->assertText($node->label()); 54 $this->assertText($node->label());
55 55
56 // Check if the author is linked correctly to the user profile page. 56 // Check if the author is linked correctly to the user profile page.
57 $username = $node->getOwner()->getUsername(); 57 $username = $node->getOwner()->getAccountName();
58 $this->assertLink($username); 58 $this->assertLink($username);
59 59
60 // Search for "&" and verify entities are not broken up in the output. 60 // Search for "&" and verify entities are not broken up in the output.
61 $edit = ['keys' => '&']; 61 $edit = ['keys' => '&'];
62 $this->drupalPostForm('search/node', $edit, t('Search')); 62 $this->drupalPostForm('search/node', $edit, t('Search'));