public function DsTestTrait::dsSelectLayout in Display Suite 8.2
Select a layout.
21 calls to DsTestTrait::dsSelectLayout()
- BlockFieldPluginTest::testBlockAccess in src/
Tests/ BlockFieldPluginTest.php - Ensure block is not rendered if block disallows access.
- BlockFieldPluginTest::testBlockCache in src/
Tests/ BlockFieldPluginTest.php - Cache contexts, tags and max-age on the block should get merged into the field build array
- BlockFieldPluginTest::testBlockFieldTitleOverride in src/
Tests/ BlockFieldPluginTest.php - Test block title override.
- CacheTagsTest::testUserCacheTags in src/
Tests/ CacheTagsTest.php - Tests setting the correct cache tags.
- CommentTest::testComments in src/
Tests/ CommentTest.php - Test adding comments to a node.
File
- src/
Tests/ DsTestTrait.php, line 13
Class
- DsTestTrait
- Provides common functionality for the Display Suite test classes.
Namespace
Drupal\ds\TestsCode
public function dsSelectLayout($edit = array(), $assert = array(), $url = 'admin/structure/types/manage/article/display', $options = array()) {
$edit += array(
'layout' => 'ds_2col_stacked',
);
$this
->drupalPostForm($url, $edit, t('Save'), $options);
$assert += array(
'regions' => array(
'header' => '<td colspan="8">' . t('Header') . '</td>',
'left' => '<td colspan="8">' . t('Left') . '</td>',
'right' => '<td colspan="8">' . t('Right') . '</td>',
'footer' => '<td colspan="8">' . t('Footer') . '</td>',
),
);
foreach ($assert['regions'] as $region => $raw) {
$this
->assertRaw($region, t('Region @region found', array(
'@region' => $region,
)));
}
}