You are here

public function FieldTargetDefinitionTest::testGetPropertyDescriptionOfNonExistingProperty in Feeds 8.3

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

@covers ::getPropertyDescription

File

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

Class

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

Namespace

Drupal\Tests\feeds\Unit

Code

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