function 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 ViewsKernelTestBase::setUpFixtures
File
- 
              core/modules/ views/ tests/ src/ Kernel/ ViewExecutableTest.php, line 95 
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',
  ]);
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
