StyleTestBase.php in Drupal 8
File
core/modules/views/tests/src/Kernel/Plugin/StyleTestBase.php
View source
<?php
namespace Drupal\Tests\views\Kernel\Plugin;
use Drupal\Tests\views\Kernel\ViewsKernelTestBase;
use Masterminds\HTML5;
abstract class StyleTestBase extends ViewsKernelTestBase {
protected $elements;
public function storeViewPreview($output) {
$html5 = new HTML5();
$htmlDom = $html5
->loadHTML('<html><body>' . $output . '</body></html>');
if ($htmlDom) {
$this->elements = simplexml_import_dom($htmlDom);
}
}
}
Classes
Name |
Description |
StyleTestBase |
Tests some general style plugin related functionality. |