protected function GridStackSettingsFormTest::setUp in GridStack 8.2
Same name and namespace in other branches
- 8 tests/src/Kernel/Form/GridStackSettingsFormTest.php \Drupal\Tests\gridstack\Kernel\Form\GridStackSettingsFormTest::setUp()
@covers ::__construct
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ Form/ GridStackSettingsFormTest.php, line 53
Class
- GridStackSettingsFormTest
- Tests the GridStack UI settings form.
Namespace
Drupal\Tests\gridstack\Kernel\FormCode
protected function setUp() {
parent::setUp();
$this
->installConfig(static::$modules);
$this->manager = $this->container
->get('gridstack.manager');
$this->libraryDiscovery = $this->container
->get('library.discovery');
$this->gridstackSettingsForm = GridStackSettingsForm::create($this->container);
// Enable Boostrap support.
$this->manager
->getConfigFactory()
->getEditable('gridstack.settings')
->set('framework', 'bootstrap')
->save();
}