diff --git a/core/modules/search/src/Tests/SearchCommentCountToggleTest.php b/core/modules/search/src/Tests/SearchCommentCountToggleTest.php index ad66a90..5ddfac4 100644 --- a/core/modules/search/src/Tests/SearchCommentCountToggleTest.php +++ b/core/modules/search/src/Tests/SearchCommentCountToggleTest.php @@ -33,7 +33,7 @@ class SearchCommentCountToggleTest extends SearchTestBase { /** * A user with permission to search and post comments. * - * @var object + * @var \Drupal\user\UserInterface */ protected $searchingUser; diff --git a/core/modules/search/src/Tests/SearchCommentTest.php b/core/modules/search/src/Tests/SearchCommentTest.php index ee68fda..682a659 100644 --- a/core/modules/search/src/Tests/SearchCommentTest.php +++ b/core/modules/search/src/Tests/SearchCommentTest.php @@ -25,8 +25,34 @@ class SearchCommentTest extends SearchTestBase { */ public static $modules = array('filter', 'node', 'comment'); + /** + * Test subject for comments. + * + * @var string + */ + protected $commentSubject; + + /** + * Id for the administrator role. + * + * @var string + */ + protected $adminRole; + + /** + * A user with various administrative permissions. + * + * @var \Drupal\user\UserInterface + */ protected $adminUser; + /** + * Test node for searching. + * + * @var \Drupal\node\NodeInterface + */ + protected $node; + protected function setUp() { parent::setUp(); diff --git a/core/modules/search/src/Tests/SearchKeywordsConditionsTest.php b/core/modules/search/src/Tests/SearchKeywordsConditionsTest.php index d4dd242..c5e42f1 100644 --- a/core/modules/search/src/Tests/SearchKeywordsConditionsTest.php +++ b/core/modules/search/src/Tests/SearchKeywordsConditionsTest.php @@ -25,6 +25,13 @@ class SearchKeywordsConditionsTest extends SearchTestBase { */ public static $modules = array('comment', 'search_extra_type'); + /** + * A user with permission to search and post comments. + * + * @var \Drupal\user\UserInterface + */ + protected $searchingUser; + protected function setUp() { parent::setUp(); diff --git a/core/modules/search/src/Tests/SearchLanguageTest.php b/core/modules/search/src/Tests/SearchLanguageTest.php index 266e522..6a146a1 100644 --- a/core/modules/search/src/Tests/SearchLanguageTest.php +++ b/core/modules/search/src/Tests/SearchLanguageTest.php @@ -24,6 +24,13 @@ class SearchLanguageTest extends SearchTestBase { */ public static $modules = array('language'); + /** + * Array of nodes available to search. + * + * @var array + */ + protected $searchableNodes; + protected function setUp() { parent::setUp(); diff --git a/core/modules/search/src/Tests/SearchPreprocessLangcodeTest.php b/core/modules/search/src/Tests/SearchPreprocessLangcodeTest.php index 0093e6a..fbac74d 100644 --- a/core/modules/search/src/Tests/SearchPreprocessLangcodeTest.php +++ b/core/modules/search/src/Tests/SearchPreprocessLangcodeTest.php @@ -20,6 +20,13 @@ class SearchPreprocessLangcodeTest extends SearchTestBase { */ public static $modules = array('search_langcode_test'); + /** + * Test node for searching. + * + * @var \Drupal\node\NodeInterface + */ + protected $node; + protected function setUp() { parent::setUp();