You are here

public function StorageFactoryTest::providerGet in Radioactivity 8.3

Same name and namespace in other branches
  1. 4.0.x tests/src/Unit/StorageFactoryTest.php \Drupal\Tests\radioactivity\Unit\StorageFactoryTest::providerGet()

Data provider for testGet.

Return value

array Storage type, storage class.

File

tests/src/Unit/StorageFactoryTest.php, line 106

Class

StorageFactoryTest
@coversDefaultClass \Drupal\radioactivity\StorageFactory @group radioactivity

Namespace

Drupal\Tests\radioactivity\Unit

Code

public function providerGet() {
  return [
    [
      'rest_local',
      RestIncidentStorage::class,
    ],
    [
      'rest_remote',
      RestIncidentStorage::class,
    ],
    [
      'default',
      DefaultIncidentStorage::class,
    ],
    [
      'unknown_type',
      DefaultIncidentStorage::class,
    ],
  ];
}