Commit 41330889 authored by jhodgdon's avatar jhodgdon

Issue #2169065 by nadja.jury, danmuzyka: Fix up docs for Search module test classes

parent 94fade95
...@@ -7,6 +7,9 @@ ...@@ -7,6 +7,9 @@
namespace Drupal\search\Tests; namespace Drupal\search\Tests;
/**
* Indexes content and tests the advanced search form.
*/
class SearchAdvancedSearchFormTest extends SearchTestBase { class SearchAdvancedSearchFormTest extends SearchTestBase {
protected $node; protected $node;
......
...@@ -28,7 +28,7 @@ class SearchCommentTest extends SearchTestBase { ...@@ -28,7 +28,7 @@ class SearchCommentTest extends SearchTestBase {
public static function getInfo() { public static function getInfo() {
return array( return array(
'name' => 'Comment Search tests', 'name' => 'Comment Search tests',
'description' => 'Verify text formats and filters used elsewhere.', 'description' => 'Test integration searching comments.',
'group' => 'Search', 'group' => 'Search',
); );
} }
......
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
const SEARCH_TYPE_2 = '_test2_'; const SEARCH_TYPE_2 = '_test2_';
const SEARCH_TYPE_JPN = '_test3_'; const SEARCH_TYPE_JPN = '_test3_';
/**
* Indexes content and queries it.
*/
class SearchMatchTest extends SearchTestBase { class SearchMatchTest extends SearchTestBase {
public static function getInfo() { public static function getInfo() {
return array( return array(
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
namespace Drupal\search\Tests; namespace Drupal\search\Tests;
/** /**
* Test search_simplify() on every Unicode character, and some other cases. * Tests that the search prepocessing uses the correct language code.
*/ */
class SearchPreprocessLangcodeTest extends SearchTestBase { class SearchPreprocessLangcodeTest extends SearchTestBase {
...@@ -21,7 +21,7 @@ class SearchPreprocessLangcodeTest extends SearchTestBase { ...@@ -21,7 +21,7 @@ class SearchPreprocessLangcodeTest extends SearchTestBase {
public static function getInfo() { public static function getInfo() {
return array( return array(
'name' => 'Search preprocess langcode', 'name' => 'Search preprocess langcode',
'description' => 'Check that the hook_search_preprocess passes the correct langcode from the entity.', 'description' => 'Tests that the search prepocessing uses the correct language code.',
'group' => 'Search', 'group' => 'Search',
); );
} }
......
...@@ -7,6 +7,9 @@ ...@@ -7,6 +7,9 @@
namespace Drupal\search\Tests; namespace Drupal\search\Tests;
/**
* Indexes content and tests ranking factors.
*/
class SearchRankingTest extends SearchTestBase { class SearchRankingTest extends SearchTestBase {
/** /**
......
...@@ -9,6 +9,9 @@ ...@@ -9,6 +9,9 @@
use Drupal\simpletest\WebTestBase; use Drupal\simpletest\WebTestBase;
/**
* Defines the common search test code.
*/
abstract class SearchTestBase extends WebTestBase { abstract class SearchTestBase extends WebTestBase {
/** /**
......
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