You are here

function dsBaseTest::dsConfigureStyles in Display Suite 7

Configure styles

1 call to dsBaseTest::dsConfigureStyles()
dsLayoutsStylesTests::testDStestLayouts in tests/ds.base.test
Test selecting layouts, empty regions, classes, region to block and fields.

File

tests/ds.base.test, line 52
Base functions and tests for Display Suite.

Class

dsBaseTest
@file Base functions and tests for Display Suite.

Code

function dsConfigureStyles($edit = array()) {
  $edit += array(
    'ds_styles_regions' => "class_name_1\nclass_name_2|Friendly name",
  );
  $this
    ->drupalPost('admin/structure/ds/styles', $edit, t('Save configuration'));
  $this
    ->assertText(t('The configuration options have been saved.'), t('Styles configuration saved'));
  $this
    ->assertRaw('class_name_1', 'Class name 1 found');
  $this
    ->assertRaw('class_name_2', 'Class name 1 found');
}