function TypedDataLanguageRelationshipPluginTest::testRelationshipName

@covers ::getName

File

tests/src/Kernel/TypedDataLanguageRelationshipPluginTest.php, line 16

Class

TypedDataLanguageRelationshipPluginTest
@coversDefaultClass \Drupal\ctools\Plugin\Relationship\TypedDataEntityRelationship[[api-linebreak]] @group CTools

Namespace

Drupal\Tests\ctools\Kernel

Code

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());
}