public function MergeTermsTest::hasTitleCallback in Term Merge 8
Tests the title callback for the term merge form.
@test
File
- tests/src/ Kernel/ Form/ MergeTermsTest.php, line 23 
Class
- MergeTermsTest
- Tests the term merge form.
Namespace
Drupal\Tests\term_merge\Kernel\FormCode
public function hasTitleCallback() {
  $sut = $this
    ->createSubjectUnderTest();
  $vocabulary = $this
    ->createVocabulary();
  $expected = new TranslatableMarkup('Merge %vocabulary terms', [
    '%vocabulary' => $vocabulary
      ->label(),
  ]);
  self::assertEquals($expected, $sut
    ->titleCallback($vocabulary));
}