You are here

function NodeDisplaysRegions::testRegionsWithNoCCKFields in Node displays 7

Same name and namespace in other branches
  1. 6.3 tests/nd.regions.test \NodeDisplaysRegions::testRegionsWithNoCCKFields()
  2. 6 tests/nd.regions.test \NodeDisplaysRegions::testRegionsWithNoCCKFields()
  3. 6.2 tests/nd.regions.test \NodeDisplaysRegions::testRegionsWithNoCCKFields()

Test that region handling works when no cck fields are defined.

File

tests/nd.regions.test, line 59
Tests for Node displays (regions)

Class

NodeDisplaysRegions
@file Tests for Node displays (regions)

Code

function testRegionsWithNoCCKFields() {
  $admin_user = $this
    ->drupalCreateUser(array(
    'administer nodes',
    'access display suite',
    'administer nd',
    'configure layout for nd',
    'export and import settings',
    'revert overridden settings',
    'use PHP in custom fields',
  ));
  $this
    ->drupalLogin($admin_user);
  $this
    ->drupalGet('admin/ds/layout/page/full');
  $this
    ->assertRaw('edit-body-full-region-wrapper', t('Region handling works with no CCK fields.'), t('Region handling'));
}