You are here

public function MergeTermsTargetTest::hasTitle in Term Merge 8

Tests the title for the target taxonomy term field.

@test

File

tests/src/Kernel/Form/MergeTermsTargetTest.php, line 22

Class

MergeTermsTargetTest
Tests the merge terms target terms form.

Namespace

Drupal\Tests\term_merge\Kernel\Form

Code

public function hasTitle() {
  $sut = new MergeTermsTarget($this->entityTypeManager, $this->privateTempStoreFactory);
  $expected = new TranslatableMarkup('Please select a target term');
  self::assertEquals($expected, $sut
    ->titleCallback());
}