You are here

public function ConfigNameTest::testCreateByTypeName in Update helper 2.x

Same name and namespace in other branches
  1. 8 tests/src/Kernel/ConfigNameTest.php \Drupal\Tests\update_helper\Kernel\ConfigNameTest::testCreateByTypeName()

Test creation of class by type and name.

@dataProvider configNameDataProvider

Parameters

string $fullName: Full configuration name.

string $type: Configuration type.

string $name: Configuration name.

File

tests/src/Kernel/ConfigNameTest.php, line 55

Class

ConfigNameTest
Automated tests for ConfigName class.

Namespace

Drupal\Tests\update_helper\Kernel

Code

public function testCreateByTypeName($fullName, $type, $name) {
  $configName = ConfigName::createByTypeName($type, $name);
  $this
    ->assertEquals($fullName, $configName
    ->getFullName());
}