comparison core/modules/search/tests/src/Functional/SearchSetLocaleTest.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 that search works with numeric locale settings. 8 * Tests that search works with numeric locale settings.
7 * 9 *
8 * @group search 10 * @group search
9 */ 11 */
10 class SearchSetLocaleTest extends SearchTestBase { 12 class SearchSetLocaleTest extends BrowserTestBase {
11 13
12 /** 14 /**
13 * Modules to enable. 15 * {@inheritdoc}
14 *
15 * @var array
16 */ 16 */
17 public static $modules = ['comment']; 17 protected static $modules = ['comment', 'node', 'search'];
18 18
19 /** 19 /**
20 * A node search plugin instance. 20 * A node search plugin instance.
21 * 21 *
22 * @var \Drupal\search\Plugin\SearchInterface 22 * @var \Drupal\search\Plugin\SearchInterface
23 */ 23 */
24 protected $nodeSearchPlugin; 24 protected $nodeSearchPlugin;
25 25
26 protected function setUp() { 26 protected function setUp() {
27 parent::setUp(); 27 parent::setUp();
28
29 $this->drupalCreateContentType(['type' => 'page', 'name' => 'Basic page']);
28 30
29 // Create a plugin instance. 31 // Create a plugin instance.
30 $this->nodeSearchPlugin = $this->container->get('plugin.manager.search')->createInstance('node_search'); 32 $this->nodeSearchPlugin = $this->container->get('plugin.manager.search')->createInstance('node_search');
31 // Create a node with a very simple body. 33 // Create a node with a very simple body.
32 $this->drupalCreateNode(['body' => [['value' => 'tapir']]]); 34 $this->drupalCreateNode(['body' => [['value' => 'tapir']]]);