You are here

function dsPanelViewModesTests::DSPanelCloneLayout in Display Suite 7

Clone a layout

Parameters

$edit: A collection of form properties to submit.

$view_mode: The name of the view mode.

1 call to dsPanelViewModesTests::DSPanelCloneLayout()
dsPanelViewModesTests::testPanelViewModes in tests/ds.panels.test
Panels view modes tests.

File

tests/ds.panels.test, line 77
Panel view modes tests.

Class

dsPanelViewModesTests
@file Panel view modes tests.

Code

function DSPanelCloneLayout($edit, $view_mode) {
  $this
    ->drupalPost('admin/structure/types/manage/article/display/' . $view_mode, $edit, t('Clone layout'));
  $this
    ->assertText(t('The layout has been cloned.'));
}