You are here

public function LoggerServiceTest::providerTestHasChannel in Purge 8.3

Provides test data for testHasChannel().

File

tests/src/Unit/Logger/LoggerServiceTest.php, line 213

Class

LoggerServiceTest
@coversDefaultClass \Drupal\purge\Logger\LoggerService

Namespace

Drupal\Tests\purge\Unit\Logger

Code

public function providerTestHasChannel() : array {
  return [
    [
      'exists',
      TRUE,
    ],
    [
      'foo',
      TRUE,
    ],
    [
      'foobar',
      TRUE,
    ],
    [
      'foobarbaz',
      TRUE,
    ],
    [
      'fo',
      FALSE,
    ],
    [
      'doesnotexists',
      FALSE,
    ],
  ];
}