Mercurial > hg > isophonics-drupal-site
diff core/modules/search/tests/src/Functional/SearchCommentCountToggleTest.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line diff
--- a/core/modules/search/tests/src/Functional/SearchCommentCountToggleTest.php Tue Jul 10 15:07:59 2018 +0100 +++ b/core/modules/search/tests/src/Functional/SearchCommentCountToggleTest.php Thu Feb 28 13:21:36 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']);