diff --git a/core/modules/dblog/tests/src/Functional/DbLogTest.php b/core/modules/dblog/tests/src/Functional/DbLogTest.php index 0e8cd1d4dc..bd3fc9b058 100644 --- a/core/modules/dblog/tests/src/Functional/DbLogTest.php +++ b/core/modules/dblog/tests/src/Functional/DbLogTest.php @@ -119,7 +119,7 @@ public function testLogEventPage() { } /** - * Test individual log event page. + * Test that twig errors are displayed correctly. */ public function testMessageParsing() { $this->drupalLogin($this->adminUser); diff --git a/core/tests/Drupal/Tests/Core/Logger/LogMessageParserTest.php b/core/tests/Drupal/Tests/Core/Logger/LogMessageParserTest.php index 395517f51f..05d151e5f3 100644 --- a/core/tests/Drupal/Tests/Core/Logger/LogMessageParserTest.php +++ b/core/tests/Drupal/Tests/Core/Logger/LogMessageParserTest.php @@ -63,6 +63,11 @@ public function providerTestParseMessagePlaceholders() { ['message' => 'Test {with} two {encapsuled} strings', 'context' => ['with' => 'together', 'encapsuled' => 'awesome']], ['message' => 'Test @with two @encapsuled strings', 'context' => ['@with' => 'together', '@encapsuled' => 'awesome']], ], + // Message with PSR3 and twig style messagea. + [ + ['message' => 'Test {with} twig {{encapsuled}} strings', 'context' => ['with' => 'together', 'encapsuled' => 'awesome']], + ['message' => 'Test @with twig {@encapsuled} strings', 'context' => ['@with' => 'together', '@encapsuled' => 'awesome']], + ], ]; }