You are here

private function MergeTermsConfirmTest::createSubjectUnderTest in Term Merge 8

Creates the form class used for rendering the confirm form.

Return value

\Drupal\term_merge\Form\MergeTermsConfirm The form class used for rendering the confirm form.

6 calls to MergeTermsConfirmTest::createSubjectUnderTest()
MergeTermsConfirmTest::buildForm in tests/src/Kernel/Form/MergeTermsConfirmTest.php
Tests the form build for the confirm form.
MergeTermsConfirmTest::incorrectTargetThrowsException in tests/src/Kernel/Form/MergeTermsConfirmTest.php
Tests an exception is thrown for for invalid target types.
MergeTermsConfirmTest::submitFormInvokesCorrectTermMergerMethod in tests/src/Kernel/Form/MergeTermsConfirmTest.php
Tests the correct method is invoked on the term merger after confirmation.
MergeTermsConfirmTest::submitRedirectsToMergeRoute in tests/src/Kernel/Form/MergeTermsConfirmTest.php
Tests the redirect after merging terms.
MergeTermsConfirmTest::submitSetsSuccessMessage in tests/src/Kernel/Form/MergeTermsConfirmTest.php
Tests a status message is displayed after merging terms.

... See full list

File

tests/src/Kernel/Form/MergeTermsConfirmTest.php, line 305

Class

MergeTermsConfirmTest
Tests the Merge terms confirm form.

Namespace

Drupal\Tests\term_merge\Kernel\Form

Code

private function createSubjectUnderTest() {
  return new MergeTermsConfirm($this->entityTypeManager, $this->privateTempStoreFactory, \Drupal::service('term_merge.term_merger'));
}