Commit bf8f70b0 authored by alexpott's avatar alexpott

Issue #2183951 by prics | jhodgdon: Fix up some search tests.

parent a1cf022f
......@@ -2,13 +2,17 @@
/**
* @file
* Definition of Drupal\search\Tests\SearchKeywordsConditionsTest.
* Contains \Drupal\search\Tests\SearchKeywordsConditionsTest.
*/
namespace Drupal\search\Tests;
/**
* Tests keywords and conditions.
* Tests the searching without keywords.
*
* Verifies that a plugin can override the isSearchExecutable() method to allow
* searching without keywords set and that GET query parameters are made
* available to plugins during search execution.
*/
class SearchKeywordsConditionsTest extends SearchTestBase {
......@@ -22,7 +26,7 @@ class SearchKeywordsConditionsTest extends SearchTestBase {
public static function getInfo() {
return array(
'name' => 'Keywords and conditions',
'description' => 'Verify the search pulls in keywords and extra conditions.',
'description' => 'Verify the search without keywords set and extra conditions.',
'group' => 'Search',
);
}
......
......@@ -2,29 +2,22 @@
/**
* @file
* Definition of Drupal\search\Tests\SearchNodeAccessTest.
* Contains \Drupal\search\Tests\SearchNodePunctuationTest.
*/
namespace Drupal\search\Tests;
/**
* Tests node search with node access control.
* Tests node search with punctuation.
*/
class SearchNodeAccessTest extends SearchTestBase {
/**
* Modules to enable.
*
* @var array
*/
public static $modules = array('node_access_test');
class SearchNodePunctuationTest extends SearchTestBase {
public $test_user;
public static function getInfo() {
return array(
'name' => 'Search and node access',
'description' => 'Tests search functionality with node access control.',
'name' => 'Search with punctuation',
'description' => 'Tests search functionality with punctuation.',
'group' => 'Search',
);
}
......
......@@ -2,7 +2,7 @@
/**
* @file
* Definition of Drupal\search\Tests\SearchNumberMatchingTest.
* Contains \Drupal\search\Tests\SearchNumberMatchingTest.
*/
namespace Drupal\search\Tests;
......@@ -10,7 +10,7 @@
use Drupal\Core\Language\Language;
/**
* Tests that numbers can be searched, with more complex matching.
* Tests that various number formats match each other in searching.
*/
class SearchNumberMatchingTest extends SearchTestBase {
protected $test_user;
......
......@@ -2,7 +2,7 @@
/**
* @file
* Definition of Drupal\search\Tests\SearchNumbersTest.
* Contains \Drupal\search\Tests\SearchNumbersTest.
*/
namespace Drupal\search\Tests;
......@@ -10,7 +10,7 @@
use Drupal\Core\Language\Language;
/**
* Tests that numbers can be searched.
* Tests that numbers with different formats can be searched.
*/
class SearchNumbersTest extends SearchTestBase {
protected $test_user;
......@@ -47,8 +47,8 @@ function setUp() {
'large' => '444444444444444444444444444444444444444',
'gigantic' => '5555555555555555555555555555555555555555555555555',
'over fifty characters' => '666666666666666666666666666666666666666666666666666666666666',
'date', '01/02/2009',
'commas', '987,654,321',
'date' => '01/02/2009',
'commas' => '987,654,321',
);
foreach ($this->numbers as $doc => $num) {
......
......@@ -2,13 +2,16 @@
/**
* @file
* Definition of Drupal\search\Tests\SearchPageOverrideTest.
* Contains \Drupal\search\Tests\SearchPageOverrideTest.
*/
namespace Drupal\search\Tests;
/**
* Tests that hook_search_page runs.
* Tests if the result page can be overridden.
*
* Verifies that a plugin can override the buildResults() method to
* control what the search results page looks like.
*/
class SearchPageOverrideTest extends SearchTestBase {
......@@ -24,7 +27,7 @@ class SearchPageOverrideTest extends SearchTestBase {
public static function getInfo() {
return array(
'name' => 'Search page override',
'description' => 'Verify that hook_search_page can override search page display.',
'description' => 'Verifies that the result page can be overridden.',
'group' => 'Search',
);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment