comparison core/modules/search/tests/src/Functional/SearchNodeDiacriticsTest.php @ 4:a9cd425dd02b

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:11:55 +0000
parents c75dbcec494b
children
comparison
equal deleted inserted replaced
3:307d7a7fd348 4:a9cd425dd02b
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 diacritics. 8 * Tests search functionality with diacritics.
7 * 9 *
8 * @group search 10 * @group search
9 */ 11 */
10 class SearchNodeDiacriticsTest extends SearchTestBase { 12 class SearchNodeDiacriticsTest 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 32
23 // Create a test user and log in. 33 // Create a test user and log in.
24 $this->testUser = $this->drupalCreateUser(['access content', 'search content', 'use advanced search', 'access user profiles']); 34 $this->testUser = $this->drupalCreateUser(['access content', 'search content', 'use advanced search', 'access user profiles']);
25 $this->drupalLogin($this->testUser); 35 $this->drupalLogin($this->testUser);