You are here

protected function JsonLogDataTest::setUp in JSONlog 8

Same name and namespace in other branches
  1. 8.2 tests/src/Unit/JsonLogDataTest.php \Drupal\Tests\jsonlog\Unit\JsonLogDataTest::setUp()
  2. 3.x tests/src/Unit/JsonLogDataTest.php \Drupal\Tests\jsonlog\Unit\JsonLogDataTest::setUp()

Overrides UnitTestCase::setUp

File

tests/src/Unit/JsonLogDataTest.php, line 32

Class

JsonLogDataTest
Unit tests for JsonLogData class

Namespace

Drupal\Tests\jsonlog\Unit

Code

protected function setUp() {
  parent::setUp();
  $config_stub['jsonlog.settings'] = [
    'jsonlog_severity_threshold' => self::DEFAULT_THRESHOLD,
    'jsonlog_truncate' => 64,
    'jsonlog_siteid' => self::DEFAULT_SITE_ID,
    'jsonlog_canonical' => '',
    'jsonlog_file_time' => self::DEFAULT_TIME_FORMAT,
    'jsonlog_dir' => self::DEFAULT_LOG_DIR,
    'jsonlog_tags' => 'test',
  ];
}