public function ConfigEntityTypeTest::testGetConfigPrefix in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php \Drupal\Tests\Core\Config\Entity\ConfigEntityTypeTest::testGetConfigPrefix()
Tests the getConfigPrefix() method.
@dataProvider providerTestGetConfigPrefix
@covers ::getConfigPrefix
File
- core/
tests/ Drupal/ Tests/ Core/ Config/ Entity/ ConfigEntityTypeTest.php, line 127
Class
- ConfigEntityTypeTest
- @coversDefaultClass \Drupal\Core\Config\Entity\ConfigEntityType @group Config
Namespace
Drupal\Tests\Core\Config\EntityCode
public function testGetConfigPrefix($definition, $expected) {
$entity_type = $this
->setUpConfigEntityType($definition);
$this
->assertSame($expected, $entity_type
->getConfigPrefix());
}