public function ConfigNameTest::testCreateByFullName in Update helper 2.x
Same name and namespace in other branches
- 8 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\KernelCode
public function testCreateByFullName($fullName, $type, $name) {
$configName = ConfigName::createByFullName($fullName);
$this
->assertEquals($type, $configName
->getType());
$this
->assertEquals($name, $configName
->getName());
}