Mercurial > hg > isophonics-drupal-site
comparison core/modules/search/tests/src/Functional/SearchNodePunctuationTest.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children | af1871eacc83 |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
1 <?php | 1 <?php |
2 | 2 |
3 namespace Drupal\Tests\search\Functional; | 3 namespace Drupal\Tests\search\Functional; |
4 | |
5 use Drupal\Tests\BrowserTestBase; | |
4 | 6 |
5 /** | 7 /** |
6 * Tests search functionality with punctuation and HTML entities. | 8 * Tests search functionality with punctuation and HTML entities. |
7 * | 9 * |
8 * @group search | 10 * @group search |
9 */ | 11 */ |
10 class SearchNodePunctuationTest extends SearchTestBase { | 12 class SearchNodePunctuationTest extends BrowserTestBase { |
13 | |
14 /** | |
15 * {@inheritdoc} | |
16 */ | |
17 protected static $modules = ['node', 'search']; | |
11 | 18 |
12 /** | 19 /** |
13 * A user with permission to use advanced search. | 20 * A user with permission to use advanced search. |
14 * | 21 * |
15 * @var \Drupal\user\UserInterface | 22 * @var \Drupal\user\UserInterface |
16 */ | 23 */ |
17 public $testUser; | 24 public $testUser; |
18 | 25 |
19 protected function setUp() { | 26 protected function setUp() { |
20 parent::setUp(); | 27 parent::setUp(); |
28 | |
29 $this->drupalCreateContentType(['type' => 'page', 'name' => 'Basic page']); | |
30 | |
21 node_access_rebuild(); | 31 node_access_rebuild(); |
22 | |
23 // Create a test user and log in. | 32 // Create a test user and log in. |
24 $this->testUser = $this->drupalCreateUser(['access content', 'search content', 'use advanced search', 'access user profiles']); | 33 $this->testUser = $this->drupalCreateUser(['access content', 'search content', 'use advanced search', 'access user profiles']); |
25 $this->drupalLogin($this->testUser); | 34 $this->drupalLogin($this->testUser); |
26 } | 35 } |
27 | 36 |