You are here

public function ConfigNameTest::testCreateByFullName in Update helper 8

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

Test creation of class by full name.

@dataProvider configNameDataProvider

Parameters

string $fullName: Full configuration name.

string $type: Configuration type.

string $name: Configuration name.

File

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

Class

ConfigNameTest
Automated tests for ConfigName class.

Namespace

Drupal\Tests\update_helper\Kernel

Code

public function testCreateByFullName($fullName, $type, $name) {
  $configName = ConfigName::createByFullName($fullName);
  $this
    ->assertEquals($type, $configName
    ->getType());
  $this
    ->assertEquals($name, $configName
    ->getName());
}