function OgVocabComplexWidgetTestCase::assertSubWidgets in OG Vocabulary 7
Helper function to assert sub-widgets appear.
1 call to OgVocabComplexWidgetTestCase::assertSubWidgets()
- OgVocabComplexWidgetTestCase::testContext in ./
og_vocab.test - Test Showing widget by context.
File
- ./
og_vocab.test, line 279 - Test organic groups vocabulary module.
Class
Code
function assertSubWidgets($names) {
foreach ($names as $name => $value) {
$method = $value ? 'assertField' : 'assertNoField';
$message = $value ? 'Expected vocabulary sub-widget found.' : 'Vocabulary sub-widget not found as expected.';
$this
->{$method}($name, $message);
}
}