You are here

public function MongoDBLogTestCase::assertNoEntry in MongoDB 7

Same name and namespace in other branches
  1. 8 mongodb_watchdog/mongodb_watchdog.test \MongoDBLogTestCase::assertNoEntry()
  2. 6 mongodb_watchdog/mongodb_watchdog.test \MongoDBLogTestCase::assertNoEntry()

Assert that a given entry is not present in the watchdog.

Parameters

string $message: The message to look for.

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 151
Contains \MongoDBLogTestCase.

Class

MongoDBLogTestCase

Code

public function assertNoEntry($message) {
  $logged = $this
    ->find($message);
  $this
    ->assertNull($logged, t('Event %message is not logged', array(
    '%message' => $message,
  )), $this->group);
}