function GroupUITestCase::testNestField in Field Group 7.2
Same name and namespace in other branches
- 7 tests/field_group.ui.test \GroupUITestCase::testNestField()
Nest a field underneath a group.
File
- ./
field_group.test, line 142 - Unit test file for groups.
Class
- GroupUITestCase
- Group UI tests.
Code
function testNestField() {
// Test on the wrapper field.
$groups = field_group_info_groups('node', 'article', 'form', TRUE);
$this
->assertTrue(in_array('field_image', $groups['wrapper']->children), t('Image is a child of %group', array(
'%group' => 'Wrapper',
)));
$this
->drupalGet('node/add/article');
$this
->assertRaw('id="wrapper-id"', t('Wrapper id set on wrapper div'));
}