public function ConfigListerTest::providerHasConfigProvider in Configuration Update Manager 8
Data provider for self:testProviderHasConfig().
File
- tests/
src/ Unit/ ConfigListerTest.php, line 290
Class
- ConfigListerTest
- Tests the \Drupal\config_update\ConfigListerWithProviders class.
Namespace
Drupal\Tests\config_update\UnitCode
public function providerHasConfigProvider() {
$values = [];
foreach ($this->configProviderList as $provider => $info) {
// Info has: [type, install storage items, optional storage items].
// Values needs: [type, provider name, TRUE] for valid providers,
// change the last to FALSE for invalid providers.
$values[] = [
$info[0],
$provider,
TRUE,
];
$values[] = [
$info[0],
$provider . '_suffix',
FALSE,
];
}
$values[] = [
'invalid_type',
'foo_module',
FALSE,
];
return $values;
}