diff --git a/core/modules/views/src/Tests/Plugin/StyleHtmlListTest.php b/core/modules/views/src/Tests/Plugin/StyleHtmlListTest.php new file mode 100644 index 0000000000000000000000000000000000000000..0642eff0b4697246689f399e120986773a627b96 --- /dev/null +++ b/core/modules/views/src/Tests/Plugin/StyleHtmlListTest.php @@ -0,0 +1,58 @@ +preview(); + $output = drupal_render($output); + + // Check that an empty class attribute is not added if the wrapper class is + // not set. + $this->assertTrue(strpos($output, '
') !== FALSE, 'Empty class is not added to DIV when class is not set'); + + // Check that an empty class attribute is not added if the list class is + // not set. + $this->assertTrue(strpos($output, '