protected function LayoutClassesTest::setup in Display Suite 8.3
Same name and namespace in other branches
- 8.4 tests/src/Functional/LayoutClassesTest.php \Drupal\Tests\ds\Functional\LayoutClassesTest::setup()
File
- tests/
src/ Functional/ LayoutClassesTest.php, line 17
Class
- LayoutClassesTest
- Tests for managing layouts and classes on Field UI screen.
Namespace
Drupal\Tests\ds\FunctionalCode
protected function setup() {
parent::setup();
// Set extra fields.
\Drupal::configFactory()
->getEditable('ds_extras.settings')
->set('region_to_block', TRUE)
->set('fields_extra', TRUE)
->set('fields_extra_list', [
'node|article|ds_extras_extra_test_field',
'node|article|ds_extras_second_field',
])
->save();
\Drupal::service('entity_field.manager')
->clearCachedFieldDefinitions();
}