public function MergeTermsConfirmTest::titleCallback in Term Merge 8
Tests the title callback for the confirm form.
@test @dataProvider selectedTermsProvider
File
- tests/
src/ Kernel/ Form/ MergeTermsConfirmTest.php, line 97
Class
- MergeTermsConfirmTest
- Tests the Merge terms confirm form.
Namespace
Drupal\Tests\term_merge\Kernel\FormCode
public function titleCallback(array $selectedTerms) {
$sut = $this
->createSubjectUnderTest();
$this->privateTempStoreFactory
->get('term_merge')
->set('terms', $selectedTerms);
$expected = new TranslatableMarkup('Are you sure you wish to merge %termCount terms?', [
'%termCount' => count($selectedTerms),
]);
self::assertEquals($expected, $sut
->titleCallback());
}