You are here

function FFCTestCase::testDisplaySuite in Field formatter conditions 7

Tests with Display Suite.

File

tests/ffc.test, line 141
Test file for Field formatter conditions.

Class

FFCTestCase
Group UI tests.

Code

function testDisplaySuite() {
  $ds_found = module_enable(array(
    'ds',
  ));
  if ($ds_found) {
    $this
      ->ffcSelectLayout();
    $edit = array(
      'fields[body][region]' => 'left',
      'fields[submitted_by][region]' => 'right',
    );
    $this
      ->ffcConfigureUI($edit);
    $this
      ->DSTestHideSourceTargetNotEmpty();
    $this
      ->DSTestHideSourceTargetIfEmpty();
    $this
      ->DSTestHideSourceUserRoles();
    $this
      ->DSTestHideSourcePages();
  }
  else {
    $this
      ->assertTrue(TRUE, 'No DS tests run.');
  }
}