protected function ViewExecutableTest::setUpFixtures in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/tests/src/Kernel/ViewExecutableTest.php \Drupal\Tests\views\Kernel\ViewExecutableTest::setUpFixtures()
- 9 core/modules/views/tests/src/Kernel/ViewExecutableTest.php \Drupal\Tests\views\Kernel\ViewExecutableTest::setUpFixtures()
File
- core/
modules/ views/ tests/ src/ Kernel/ ViewExecutableTest.php, line 89
Class
- ViewExecutableTest
- Tests the ViewExecutable class.
Namespace
Drupal\Tests\views\KernelCode
protected function setUpFixtures() {
$this
->installEntitySchema('user');
$this
->installEntitySchema('node');
$this
->installEntitySchema('comment');
$this
->installSchema('comment', [
'comment_entity_statistics',
]);
$this
->installConfig([
'system',
'field',
'node',
'comment',
]);
NodeType::create([
'type' => 'page',
'name' => 'Page',
])
->save();
$this
->addDefaultCommentField('node', 'page');
parent::setUpFixtures();
$this
->installConfig([
'filter',
]);
}