You are here

public function ConfigListerTest::getConfigProviderProvider in Configuration Update Manager 8

Data provider for self:testGetConfigProvider().

File

tests/src/Unit/ConfigListerTest.php, line 265

Class

ConfigListerTest
Tests the \Drupal\config_update\ConfigListerWithProviders class.

Namespace

Drupal\Tests\config_update\Unit

Code

public function getConfigProviderProvider() {
  $values = [];
  foreach ($this->configProviderList as $provider => $info) {

    // Info has: [type, install storage items, optional storage items], with
    // the first item in each list that should be OK to test with
    // getConfigProvider().
    // Values needs: [item, [type, provider name]].
    $values[] = [
      $info[1][0],
      [
        $info[0],
        $provider,
      ],
    ];
    $values[] = [
      $info[2][0],
      [
        $info[0],
        $provider,
      ],
    ];
  }
  $values[] = [
    'not.a.config.item',
    NULL,
  ];
  return $values;
}