You are here

public function LoggerTest::testEnhanceLogEntry in MongoDB 8.2

Test for issue #3219325 about closures stack.

@link https://www.drupal.org/project/mongodb/issues/3219325 @covers ::enhanceLogEntry

Throws

\ReflectionException

File

modules/mongodb_watchdog/tests/src/Unit/LoggerTest.php, line 31

Class

LoggerTest
Test the ControllerBase mechanisms.

Namespace

Drupal\Tests\mongodb_watchdog\Unit

Code

public function testEnhanceLogEntry() {
  $backtrace = mongodb_watchdog_test_3219325();
  $logger = new MockLogger();
  $entry = [];
  try {
    $logger
      ->enhanceLogEntry($entry, $backtrace);
  } catch (\ReflectionException $e) {
    $this
      ->fail($e
      ->getMessage());
  }
}