function TypedDataLanguageRelationshipPluginTest::testRelationshipName
Same name in other branches
- 4.0.x tests/src/Kernel/TypedDataLanguageRelationshipPluginTest.php \Drupal\Tests\ctools\Kernel\TypedDataLanguageRelationshipPluginTest::testRelationshipName()
@covers ::getName
File
-
tests/
src/ Kernel/ TypedDataLanguageRelationshipPluginTest.php, line 16
Class
- TypedDataLanguageRelationshipPluginTest
- @coversDefaultClass \Drupal\ctools\Plugin\Relationship\TypedDataEntityRelationship @group CTools
Namespace
Drupal\Tests\ctools\KernelCode
public function testRelationshipName() {
/** @var \Drupal\ctools\Plugin\RelationshipInterface $langcode_plugin */
$langcode_plugin = $this->relationshipManager
->createInstance('typed_data_language_relationship:entity:node:langcode');
$this->assertSame('langcode', $langcode_plugin->getName());
}