function MongoDBLogTestCase::assertNoEntry in MongoDB 8
Same name and namespace in other branches
- 6 mongodb_watchdog/mongodb_watchdog.test \MongoDBLogTestCase::assertNoEntry()
- 7 mongodb_watchdog/mongodb_watchdog.test \MongoDBLogTestCase::assertNoEntry()
Assert that a given entry is not present in the watchdog.
Parameters
string $message:
Return value
void
1 call to MongoDBLogTestCase::assertNoEntry()
- MongoDBLogTestCase::testWatchdogLimit in mongodb_watchdog/
mongodb_watchdog.test - Test the default and non-default mongodb_watchdog insertion behaviours.
File
- mongodb_watchdog/
mongodb_watchdog.test, line 139 - Test class for MongoDB_watchdog.
Class
- MongoDBLogTestCase
- Test the behaviour of watchdog() mongodb_watchdog, not dblog
Code
function assertNoEntry($message) {
$logged = $this
->find($message);
$this
->assertNull($logged, t('Event %message is not logged', array(
'%message' => $message,
)), $this->group);
}