public function LayoutPluginTest::testResetLayout in Display Suite 8.2
Test reset layout.
File
- src/
Tests/ LayoutPluginTest.php, line 63
Class
- LayoutPluginTest
- Tests DS layout plugins.
Namespace
Drupal\ds\TestsCode
public function testResetLayout() {
$layout = array(
'layout' => 'ds_reset',
);
$assert = array(
'regions' => array(
'ds_content' => '<td colspan="8">' . t('Content') . '</td>',
),
);
$fields = array(
'fields[node_author][region]' => 'ds_content',
);
$this
->dsSelectLayout($layout, $assert);
$this
->dsConfigureUi($fields);
// Create a node.
$settings = array(
'type' => 'article',
);
$node = $this
->drupalCreateNode($settings);
$this
->drupalGet('node/' . $node
->id());
}