public function DsTestTrait::dsConfigureClasses in Display Suite 8.2
Configure classes.
1 call to DsTestTrait::dsConfigureClasses()
- LayoutClassesTest::testDsTestLayouts in src/
Tests/ LayoutClassesTest.php - Test selecting layouts, classes, region to block and fields.
File
- src/
Tests/ DsTestTrait.php, line 37
Class
- DsTestTrait
- Provides common functionality for the Display Suite test classes.
Namespace
Drupal\ds\TestsCode
public function dsConfigureClasses($edit = array()) {
$edit += array(
'regions' => "class_name_1\nclass_name_2|Friendly name",
);
$this
->drupalPostForm('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');
}