diff --git a/tests/src/Unit/Logger/LoggerChannelPartTest.php b/tests/src/Unit/Logger/LoggerChannelPartTest.php index 80ea61a..0307b55 100644 --- a/tests/src/Unit/Logger/LoggerChannelPartTest.php +++ b/tests/src/Unit/Logger/LoggerChannelPartTest.php @@ -46,7 +46,7 @@ class LoggerChannelPartTest extends UnitTestCase { return ($subject['@purge_channel_part'] === $id) && ($subject['@replaceme'] === $output); }) ); - $part = new LoggerChannelPart($this->loggerChannelPurge, $id, $grants); + $part = new LoggerChannelPart($this->logger, $id, $grants); $part->$severity('@replaceme', ['@replaceme' => $output]); } @@ -54,7 +54,7 @@ class LoggerChannelPartTest extends UnitTestCase { * @covers ::__construct */ public function testInstance() { - $part = new LoggerChannelPart($this->loggerChannelPurge, 'id', []); + $part = new LoggerChannelPart($this->logger, 'id', []); $this->assertInstanceOf('\Drupal\purge\Logger\LoggerChannelPartInterface', $part); $this->assertInstanceOf('\Psr\Log\LoggerInterface', $part); } @@ -65,7 +65,7 @@ class LoggerChannelPartTest extends UnitTestCase { * @dataProvider providerTestGetGrants() */ public function testGetGrants(array $grants) { - $part = new LoggerChannelPart($this->loggerChannelPurge, 'id', $grants); + $part = new LoggerChannelPart($this->logger, 'id', $grants); $this->assertEquals(count($grants), count($part->getGrants())); $this->assertEquals($grants, $part->getGrants()); foreach ($part->getGrants() as $k => $v) { @@ -260,7 +260,7 @@ class LoggerChannelPartTest extends UnitTestCase { return ($subject['@purge_channel_part'] === $id) && ($subject['@replaceme'] === $output); }) ); - $part = new LoggerChannelPart($this->loggerChannelPurge, $id); + $part = new LoggerChannelPart($this->logger, $id); $part->log($level, $message, ['@replaceme' => $output]); }