function RulesKernelTestBase::assertRulesDebugLogEntryExists

Checks if particular message is in the log with given delta.

Parameters

string $message: Log message.

int $log_item_index: Log item's index in log entries stack.

17 calls to RulesKernelTestBase::assertRulesDebugLogEntryExists()
ConfigEntityTest::testConfigAction in tests/src/Kernel/ConfigEntityTest.php
Tests saving the configuration of an action and then loading it again.
ConfigEntityTest::testConfigRule in tests/src/Kernel/ConfigEntityTest.php
Tests saving the nested config of a rule and then loading it again.
ConfigurableEventHandlerTest::testConfigurableEventHandler in tests/src/Kernel/ConfigurableEventHandlerTest.php
Tests ConfigurableEventHandlerEntityBundle.
CoreIntegrationTest::testEntityPropertyPath in tests/src/Kernel/CoreIntegrationTest.php
Tests that a complex data selector can be applied to entities.
EventIntegrationTest::testBundleQualifiedEvents in tests/src/Kernel/EventIntegrationTest.php
Tests that entity events are fired for the correct bundle.

... See full list

File

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

Class

RulesKernelTestBase
Base class for Rules Drupal unit tests.

Namespace

Drupal\Tests\rules\Kernel

Code

protected function assertRulesDebugLogEntryExists($message, $log_item_index = 0) {
    // Test that the action has logged something.
    $logs = $this->debugLog
        ->getLogs();
    $this->assertEquals($logs[$log_item_index]['message'], $message);
}