You are here

public function LoggerServiceTest::providerTestDestruct in Purge 8.3

Provides test data for testDestruct().

File

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

Class

LoggerServiceTest
@coversDefaultClass \Drupal\purge\Logger\LoggerService

Namespace

Drupal\Tests\purge\Unit\Logger

Code

public function providerTestDestruct() : array {
  return [
    [
      FALSE,
    ],
    [
      TRUE,
      'get',
      [
        'newid',
      ],
    ],
    [
      FALSE,
      'get',
      [
        'exists',
      ],
    ],
    [
      FALSE,
      'deleteChannels',
      [
        'doesnotexist',
      ],
    ],
    [
      TRUE,
      'deleteChannel',
      [
        'exists',
      ],
    ],
    [
      TRUE,
      'deleteChannels',
      [
        'ex',
      ],
    ],
    [
      TRUE,
      'setChannel',
      [
        'new',
        [
          1,
          2,
          3,
        ],
      ],
    ],
    [
      TRUE,
      'setChannel',
      [
        'exists',
        [],
      ],
    ],
  ];
}