function ViewsSaveProcessTest::setUpFixtures
Same name and namespace in other branches
- main core/modules/views/tests/src/Kernel/ViewsSaveProcessTest.php \Drupal\Tests\views\Kernel\ViewsSaveProcessTest::setUpFixtures()
Sets up the necessary fixtures for the test environment.
File
-
core/
modules/ views/ tests/ src/ Kernel/ ViewsSaveProcessTest.php, line 44
Class
- ViewsSaveProcessTest
- Tests saving views and clearing.
Namespace
Drupal\Tests\views\KernelCode
protected function setUpFixtures() : void {
$this->installEntitySchema('node');
$this->installConfig([
'system',
'field',
'node',
]);
NodeType::create([
'type' => 'page',
'name' => 'Page',
])->save();
parent::setUpFixtures();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.