You are here

function NodeDisplaysRegions::testRegionsWithNoCCKFields in Node displays 6

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

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

File

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

Class

NodeDisplaysRegions
@file Tests for Node displays (regions)

Code

function testRegionsWithNoCCKFields() {
  $admin_user = $this
    ->drupalCreateUser(array(
    'administer content types',
    'administer nodes',
  ));
  $this
    ->drupalLogin($admin_user);
  $this
    ->drupalGet('admin/content/node-type/page/display');
  $this
    ->assertRaw('edit-body-full-region-wrapper', t('Region handling works with no CCK fields.'), t('Region handling'));
}