protected function CommentAdminTest::setUp in Drupal 8
Same name in this branch
- 8 core/modules/comment/tests/src/Functional/CommentAdminTest.php \Drupal\Tests\comment\Functional\CommentAdminTest::setUp()
- 8 core/modules/comment/tests/src/Functional/Views/CommentAdminTest.php \Drupal\Tests\comment\Functional\Views\CommentAdminTest::setUp()
Same name and namespace in other branches
- 9 core/modules/comment/tests/src/Functional/Views/CommentAdminTest.php \Drupal\Tests\comment\Functional\Views\CommentAdminTest::setUp()
- 10 core/modules/comment/tests/src/Functional/Views/CommentAdminTest.php \Drupal\Tests\comment\Functional\Views\CommentAdminTest::setUp()
Overrides CommentTestBase::setUp
File
- core/
modules/ comment/ tests/ src/ Functional/ Views/ CommentAdminTest.php, line 31
Class
- CommentAdminTest
- Tests comment approval functionality.
Namespace
Drupal\Tests\comment\Functional\ViewsCode
protected function setUp() {
parent::setUp();
\Drupal::service('module_installer')
->install([
'views',
]);
$view = Views::getView('comment');
$view->storage
->enable()
->save();
\Drupal::service('router.builder')
->rebuildIfNeeded();
}