function RulesKernelTestBase::assertRulesDebugLogEntryNotExists

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 133

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);
    }
}