public function GridStackManagerTest::testGridStackManagerMethods in GridStack 8.2
Same name and namespace in other branches
- 8 tests/src/Kernel/GridStackManagerTest.php \Drupal\Tests\gridstack\Kernel\GridStackManagerTest::testGridStackManagerMethods()
Tests cases for various methods.
@covers ::attach
File
- tests/
src/ Kernel/ GridStackManagerTest.php, line 95
Class
- GridStackManagerTest
- Tests the GridStack manager methods.
Namespace
Drupal\Tests\gridstack\KernelCode
public function testGridStackManagerMethods() {
$manager = $this->gridstackManager;
$settings = [
'use_js' => TRUE,
'skin' => 'selena',
'width' => 11,
'breakpoints' => [
'lg' => [
'column' => 11,
],
],
] + $this
->getFormatterSettings();
// The gridstack is moved into plugin, it is no longer loaded by default.
$attachments = $manager
->attach($settings);
$this
->assertArrayNotHasKey('gridstack', $attachments['drupalSettings']);
}