You are here

public function NewRelicLoggerTest::getMessageTests in New Relic 8

Same name and namespace in other branches
  1. 2.x tests/src/Unit/Logger/NewRelicLoggerTest.php \Drupal\Tests\new_relic_rpm\Unit\Logger\NewRelicLoggerTest::getMessageTests()
  2. 2.0.x tests/src/Unit/Logger/NewRelicLoggerTest.php \Drupal\Tests\new_relic_rpm\Unit\Logger\NewRelicLoggerTest::getMessageTests()

Data source for tests.

File

tests/src/Unit/Logger/NewRelicLoggerTest.php, line 79

Class

NewRelicLoggerTest
@coversDefaultClass \Drupal\new_relic_rpm\Logger\NewRelicLogger @group new_relic_rpm

Namespace

Drupal\Tests\new_relic_rpm\Unit\Logger

Code

public function getMessageTests() {
  return [
    [
      'My Log Message |',
    ],
    [
      'Severity: (2) Critical |',
    ],
    [
      'Type: mytype |',
    ],
    [
      'Request URI: /foo |',
    ],
    [
      'Referrer URI: /bar |',
    ],
    [
      'User: 1',
    ],
    [
      'IP Address: 127.0.0.1',
    ],
  ];
}