public function ConfigListerTest::testGetType in Configuration Update Manager 8
@covers \Drupal\config_update\ConfigListerWithProviders::getType
File
- tests/
src/ Unit/ ConfigListerTest.php, line 183
Class
- ConfigListerTest
- Tests the \Drupal\config_update\ConfigListerWithProviders class.
Namespace
Drupal\Tests\config_update\UnitCode
public function testGetType() {
$return = $this->configLister
->getType('not_in_list');
$this
->assertNull($return);
foreach ($this->entityDefinitionInformation as $info) {
$return = $this->configLister
->getType($info['type']);
$this
->assertEquals($return
->getConfigPrefix(), $info['prefix']);
}
}