You are here

public function TextFieldMappingTest::testConstruct in FillPDF 8.4

Same name and namespace in other branches
  1. 5.0.x tests/src/Unit/FieldMapping/TextFieldMappingTest.php \Drupal\Tests\fillpdf\Unit\FieldMapping\TextFieldMappingTest::testConstruct()

Tests the constructor.

File

tests/src/Unit/FieldMapping/TextFieldMappingTest.php, line 19

Class

TextFieldMappingTest
Tests the TextFieldMapping class.

Namespace

Drupal\Tests\fillpdf\Unit\FieldMapping

Code

public function testConstruct() {

  // Test valid and invalid instantiations.
  $text_field_mapping = new TextFieldMapping('Dummy text');
  self::assertInstanceOf(TextFieldMapping::class, $text_field_mapping, 'Instantiation works.');
}