You are here

public function ConfigListerTest::testGetTypeByPrefix in Configuration Update Manager 8

@covers \Drupal\config_update\ConfigListerWithProviders::getTypeByPrefix

File

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

Class

ConfigListerTest
Tests the \Drupal\config_update\ConfigListerWithProviders class.

Namespace

Drupal\Tests\config_update\Unit

Code

public function testGetTypeByPrefix() {
  $return = $this->configLister
    ->getTypeByPrefix('not_in_list');
  $this
    ->assertNull($return);
  foreach ($this->entityDefinitionInformation as $info) {
    $return = $this->configLister
      ->getTypeByPrefix($info['prefix']);
    $this
      ->assertEquals($return
      ->getConfigPrefix(), $info['prefix']);
  }
}