protected function ViewExecutableTest::setUpFixtures in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Tests/ViewExecutableTest.php \Drupal\views\Tests\ViewExecutableTest::setUpFixtures()
Sets up the configuration and schema of views and views_test_data modules.
Because the schema of views_test_data.module is dependent on the test using it, it cannot be enabled normally.
Overrides ViewKernelTestBase::setUpFixtures
File
- core/
modules/ views/ src/ Tests/ ViewExecutableTest.php, line 83 - Contains \Drupal\views\Tests\ViewExecutableTest.
Class
- ViewExecutableTest
- Tests the ViewExecutable class.
Namespace
Drupal\views\TestsCode
protected function setUpFixtures() {
$this
->installEntitySchema('user');
$this
->installEntitySchema('node');
$this
->installEntitySchema('comment');
$this
->installSchema('comment', array(
'comment_entity_statistics',
));
$this
->installConfig(array(
'system',
'field',
'node',
'comment',
));
entity_create('node_type', array(
'type' => 'page',
'name' => 'Page',
))
->save();
$this
->addDefaultCommentField('node', 'page');
parent::setUpFixtures();
$this
->installConfig(array(
'filter',
));
}