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, '