protected function FieldCollectionBasicTestCase::assertNoHookMessage in Field collection 7
Fail if the message $text was set by one of the CRUD hooks in entity_crud_hook_test.module, i.e., if the $text is an element of $_SESSION['entity_crud_hook_test'].
Parameters
$text: Plain text to look for.
$message: Message to display.
$group: The group this message belongs to, defaults to 'Other'.
Return value
bool TRUE on pass, FALSE on fail.
See also
FieldCollectionBasicTestCase::assertHookMessage()
FieldCollectionBasicTestCase::clearHookMessages()
1 call to FieldCollectionBasicTestCase::assertNoHookMessage()
- FieldCollectionBasicTestCase::testCRUD in ./
field_collection.test - Tests CRUD.
File
- ./
field_collection.test, line 101 - Tests for field_collections.
Class
- FieldCollectionBasicTestCase
- Test basics.
Code
protected function assertNoHookMessage($text, $message = NULL, $group = 'Other') {
if (!isset($message)) {
$message = $text;
}
return $this
->assertFalse(in_array($text, $_SESSION['entity_crud_hook_test']), $message, $group);
}