You are here

protected function RulesKernelTestBase::assertRulesDebugLogEntryNotExists in Rules 8.3

Checks if particular message is NOT in the log.

Parameters

string $message: Log message.

1 call to RulesKernelTestBase::assertRulesDebugLogEntryNotExists()
EventIntegrationTest::testBundleQualifiedEvents in tests/src/Kernel/EventIntegrationTest.php
Tests that entity events are fired for the correct bundle.

File

tests/src/Kernel/RulesKernelTestBase.php, line 135

Class

RulesKernelTestBase
Base class for Rules Drupal unit tests.

Namespace

Drupal\Tests\rules\Kernel

Code

protected function assertRulesDebugLogEntryNotExists($message) {

  // Check each log entry.
  $logs = $this->debugLog
    ->getLogs();
  foreach ($logs as $log) {
    $this
      ->assertNotEquals($log['message'], $message);
  }
}