X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fviews%2Ftests%2Fsrc%2FKernel%2FPlugin%2FStyleHtmlListTest.php;fp=web%2Fcore%2Fmodules%2Fviews%2Ftests%2Fsrc%2FKernel%2FPlugin%2FStyleHtmlListTest.php;h=0e99439e7ed25532bbb8bebd79485e0a0a567cd5;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/web/core/modules/views/tests/src/Kernel/Plugin/StyleHtmlListTest.php b/web/core/modules/views/tests/src/Kernel/Plugin/StyleHtmlListTest.php new file mode 100644 index 000000000..0e99439e7 --- /dev/null +++ b/web/core/modules/views/tests/src/Kernel/Plugin/StyleHtmlListTest.php @@ -0,0 +1,53 @@ +preview(); + $output = \Drupal::service('renderer')->renderRoot($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, '