public function LogsHttpLoggerTest::setUp in Logs HTTP 8
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ LogsHttpLoggerTest.php, line 43  
Class
- LogsHttpLoggerTest
 - Tests the Logs Http logger service.
 
Namespace
Drupal\Tests\logs_http\UnitCode
public function setUp() : void {
  $this->config = $this
    ->prophesize(ConfigFactoryInterface::class);
  $this->logMessageParser = $this
    ->prophesize(LogMessageParserInterface::class);
  $this->severityLevels = RfcLogLevel::getLevels();
  $this->config
    ->get('logs_http.settings')
    ->willReturn($this->config
    ->reveal());
}