LoggerTest.php in MongoDB 8.2
File
modules/mongodb_watchdog/tests/src/Unit/LoggerTest.php
View source
<?php
namespace Drupal\Tests\mongodb_watchdog\Unit;
use PHPUnit\Framework\TestCase;
class LoggerTest extends TestCase {
public function setUp() : void {
require_once __DIR__ . "/../../modules/mongodb_watchdog_test/mongodb_watchdog_test.module";
}
public function testEnhanceLogEntry() {
$backtrace = mongodb_watchdog_test_3219325();
$logger = new MockLogger();
$entry = [];
try {
$logger
->enhanceLogEntry($entry, $backtrace);
} catch (\ReflectionException $e) {
$this
->fail($e
->getMessage());
}
}
}