You are here

public function FieldTargetDefinitionTest::testGetPropertyLabelOfNonExistingProperty in Feeds 8.3

Tests no errors when the label for a custom property isn't set.

@covers ::getPropertyLabel

File

tests/src/Unit/FieldTargetDefinitionTest.php, line 99

Class

FieldTargetDefinitionTest
@coversDefaultClass \Drupal\feeds\FieldTargetDefinition @group feeds

Namespace

Drupal\Tests\feeds\Unit

Code

public function testGetPropertyLabelOfNonExistingProperty() {
  $field_definition = $this
    ->createFieldDefinition();
  $target_definition = FieldTargetDefinition::createFromFieldDefinition($field_definition
    ->reveal());
  $target_definition
    ->addProperty('bar');
  $this
    ->assertEquals('', $target_definition
    ->getPropertyLabel('bar'));
}