Mercurial > hg > isophonics-drupal-site
comparison core/modules/search/tests/src/Functional/SearchExactTest.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 that searching for a phrase gets the correct page count. | 8 * Tests that searching for a phrase gets the correct page count. |
7 * | 9 * |
8 * @group search | 10 * @group search |
9 */ | 11 */ |
10 class SearchExactTest extends SearchTestBase { | 12 class SearchExactTest extends BrowserTestBase { |
13 | |
14 /** | |
15 * {@inheritdoc} | |
16 */ | |
17 protected static $modules = ['node', 'search']; | |
18 | |
11 /** | 19 /** |
12 * Tests that the correct number of pager links are found for both keywords and phrases. | 20 * Tests that the correct number of pager links are found for both keywords and phrases. |
13 */ | 21 */ |
14 public function testExactQuery() { | 22 public function testExactQuery() { |
23 $this->drupalCreateContentType(['type' => 'page', 'name' => 'Basic page']); | |
24 | |
15 // Log in with sufficient privileges. | 25 // Log in with sufficient privileges. |
16 $user = $this->drupalCreateUser(['create page content', 'search content']); | 26 $user = $this->drupalCreateUser(['create page content', 'search content']); |
17 $this->drupalLogin($user); | 27 $this->drupalLogin($user); |
18 | 28 |
19 $settings = [ | 29 $settings = [ |