You are here

protected static function ControllerTest::neuter in MongoDB 8.2

Remove all Drupal markup placeholders.

Parameters

string $message: The raw message.

Return value

string The replacement message.

1 call to ControllerTest::neuter()
ControllerTest::testLoggerAddAndUiClear in modules/mongodb_watchdog/tests/src/Functional/ControllerTest.php
Test the UI clearing feature.

File

modules/mongodb_watchdog/tests/src/Functional/ControllerTest.php, line 128

Class

ControllerTest
Test the MongoDB report controllers.

Namespace

Drupal\Tests\mongodb_watchdog\Functional

Code

protected static function neuter(string $message) : string {
  return str_replace([
    '{',
    '}',
    '@',
    '%',
    ':',
  ], '', $message);
}