public function LoggerServiceTest::testHasChannel in Purge 8.3
@covers ::hasChannel
@dataProvider providerTestHasChannel()
File
- tests/
src/ Unit/ Logger/ LoggerServiceTest.php, line 204
Class
- LoggerServiceTest
- @coversDefaultClass \Drupal\purge\Logger\LoggerService
Namespace
Drupal\Tests\purge\Unit\LoggerCode
public function testHasChannel($id, $shouldexist) : void {
$config_factory = $this
->getConfigFactoryStub($this->defaultConfig);
$service = new LoggerService($config_factory, $this->loggerChannelPartFactory);
$this
->assertEquals($service
->hasChannel($id), $shouldexist);
}