You are here

public function BlazyViewsFileTest::testBlazyViewsForm in Blazy 8.2

Same name and namespace in other branches
  1. 8 tests/src/Kernel/Views/BlazyViewsFileTest.php \Drupal\Tests\blazy\Kernel\Views\BlazyViewsFileTest::testBlazyViewsForm()

Make sure that the HTML list style markup is correct.

File

tests/src/Kernel/Views/BlazyViewsFileTest.php, line 198

Class

BlazyViewsFileTest
Test Blazy Views integration.

Namespace

Drupal\Tests\blazy\Kernel\Views

Code

public function testBlazyViewsForm() {
  $view = Views::getView('test_blazy_entity_2');
  $this
    ->executeView($view);
  $view
    ->setDisplay('default');
  $style_plugin = $view->style_plugin;
  $style_plugin->options['grid'] = 0;
  $form = [];
  $form_state = new FormState();
  $style_plugin
    ->buildOptionsForm($form, $form_state);
  $this
    ->assertArrayHasKey('closing', $form);
  $style_plugin
    ->submitOptionsForm($form, $form_state);
  $view
    ->destroy();
}