X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsearch%2Ftests%2Fsrc%2FFunctional%2FSearchCommentCountToggleTest.php;fp=web%2Fcore%2Fmodules%2Fsearch%2Ftests%2Fsrc%2FFunctional%2FSearchCommentCountToggleTest.php;h=2d7811576507c613286a5e3b9779ed5a5cd4cbf1;hp=7cd9f8562d983691ce35c13cfa01a366fd39beae;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/search/tests/src/Functional/SearchCommentCountToggleTest.php b/web/core/modules/search/tests/src/Functional/SearchCommentCountToggleTest.php index 7cd9f8562..2d7811576 100644 --- a/web/core/modules/search/tests/src/Functional/SearchCommentCountToggleTest.php +++ b/web/core/modules/search/tests/src/Functional/SearchCommentCountToggleTest.php @@ -4,6 +4,7 @@ namespace Drupal\Tests\search\Functional; use Drupal\comment\Plugin\Field\FieldType\CommentItemInterface; use Drupal\comment\Tests\CommentTestTrait; +use Drupal\Tests\BrowserTestBase; /** * Tests that comment count display toggles properly on comment status of node. @@ -17,16 +18,14 @@ use Drupal\comment\Tests\CommentTestTrait; * * @group search */ -class SearchCommentCountToggleTest extends SearchTestBase { +class SearchCommentCountToggleTest extends BrowserTestBase { use CommentTestTrait; /** - * Modules to enable. - * - * @var array + * {@inheritdoc} */ - public static $modules = ['node', 'comment']; + protected static $modules = ['node', 'comment', 'search', 'dblog']; /** * A user with permission to search and post comments. @@ -45,6 +44,8 @@ class SearchCommentCountToggleTest extends SearchTestBase { protected function setUp() { parent::setUp(); + $this->drupalCreateContentType(['type' => 'article', 'name' => 'Article']); + // Create searching user. $this->searchingUser = $this->drupalCreateUser(['search content', 'access content', 'access comments', 'post comments', 'skip comment approval']);