You are here

public function ConfigListerTest::testGetTypeNameByConfigName in Configuration Update Manager 8

@covers \Drupal\config_update\ConfigListerWithProviders::getTypeNameByConfigName

File

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

Class

ConfigListerTest
Tests the \Drupal\config_update\ConfigListerWithProviders class.

Namespace

Drupal\Tests\config_update\Unit

Code

public function testGetTypeNameByConfigName() {
  $return = $this->configLister
    ->getTypeNameByConfigName('not_in_list');
  $this
    ->assertNull($return);
  foreach ($this->entityDefinitionInformation as $info) {
    $return = $this->configLister
      ->getTypeNameByConfigName($info['prefix'] . '.something');
    $this
      ->assertEquals($return, $info['type']);
  }
}