Mercurial > hg > cmmr2012-drupal-site
diff core/modules/search/tests/src/Functional/SearchCommentCountToggleTest.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children |
line wrap: on
line diff
--- a/core/modules/search/tests/src/Functional/SearchCommentCountToggleTest.php Thu Feb 28 11:14:44 2019 +0000 +++ b/core/modules/search/tests/src/Functional/SearchCommentCountToggleTest.php Thu Feb 28 13:11:55 2019 +0000 @@ -4,6 +4,7 @@ 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 @@ * * @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 @@ 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']);