function dsBaseTest::dsConfigureClasses in Display Suite 7.2
Configure classes
1 call to dsBaseTest::dsConfigureClasses()
- dsLayoutsClassesTests::testDStestLayouts in tests/
ds.base.test - Test selecting layouts, classes, region to block and fields.
File
- tests/
ds.base.test, line 51 - Base functions and tests for Display Suite.
Class
- dsBaseTest
- @file Base functions and tests for Display Suite.
Code
function dsConfigureClasses($edit = array()) {
$edit += array(
'ds_classes_regions' => "class_name_1\nclass_name_2|Friendly name",
);
$this
->drupalPost('admin/structure/ds/classes', $edit, t('Save configuration'));
$this
->assertText(t('The configuration options have been saved.'), t('CSS classes configuration saved'));
$this
->assertRaw('class_name_1', 'Class name 1 found');
$this
->assertRaw('class_name_2', 'Class name 1 found');
}