You are here

public function LayoutPluginTest::testDefaultWrappers in Display Suite 8.2

Tests settings default wrappers.

File

src/Tests/LayoutPluginTest.php, line 91

Class

LayoutPluginTest
Tests DS layout plugins.

Namespace

Drupal\ds\Tests

Code

public function testDefaultWrappers() {

  // Create a node.
  $settings = array(
    'type' => 'article',
  );
  $node = $this
    ->drupalCreateNode($settings);

  // Select a layout.
  $this
    ->dsSelectLayout();

  // Go to the node.
  $this
    ->drupalGet('node/' . $node
    ->id());

  // Check we don't have empty wrappers.
  $this
    ->assertNoRaw('<>', 'No empty wrappers found');
}