protected function GridStackSettingsFormTest::setUp in GridStack 8
Same name and namespace in other branches
- 8.2 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 59 
Class
- GridStackSettingsFormTest
- Tests the GridStack UI settings form.
Namespace
Drupal\Tests\gridstack\Kernel\FormCode
protected function setUp() {
  parent::setUp();
  $this
    ->installConfig(static::$modules);
  $this->blazyManager = $this->container
    ->get('blazy.manager');
  $this->libraryDiscovery = $this->container
    ->get('library.discovery');
  $this->messenger = $this->container
    ->get('messenger');
  $this->gridstackSettingsForm = new GridStackSettingsForm($this->blazyManager
    ->getConfigFactory(), $this->libraryDiscovery, $this->messenger);
  // Enable Boostrap support.
  $this->blazyManager
    ->getConfigFactory()
    ->getEditable('gridstack.settings')
    ->set('framework', 'bootstrap')
    ->save();
}