function OgVocabComplexWidgetTestCase::testWidget in OG Vocabulary 7
Test widget.
File
- ./
og_vocab.test, line 182 - Test organic groups vocabulary module.
Class
Code
function testWidget() {
// Assert user can see widget with 3 vocabularies.
$this
->drupalGet('node/add/post');
$names = array(
'og_vocabulary[und][0][2][]',
'og_vocabulary[und][0][3]',
'og_vocabulary[und][0][4][0][target_id]',
);
foreach ($names as $name) {
$this
->assertField($name, 'Expected vocabulary sub-widget found.');
}
// Assert sub-widget is required and multiple.
// Assert sub-widget is not-required and not-multiple.
// Assert sub-widget is autocomplete.
}