private function MergeTermsTest::createSubjectUnderTest in Term Merge 8
Creates the form class used for rendering the merge terms form.
Return value
\Drupal\term_merge\Form\MergeTerms The form class used for rendering the merge terms form.
6 calls to MergeTermsTest::createSubjectUnderTest()
- MergeTermsTest::hasTitleCallback in tests/
src/ Kernel/ Form/ MergeTermsTest.php - Tests the title callback for the term merge form.
- MergeTermsTest::redirectsToConfirmationForm in tests/
src/ Kernel/ Form/ MergeTermsTest.php - Tests the form redirects to the confirm form.
- MergeTermsTest::setsLocalStorage in tests/
src/ Kernel/ Form/ MergeTermsTest.php - Tests merge terms are saved to the temp store.
- MergeTermsTest::validatesSelectedTerms in tests/
src/ Kernel/ Form/ MergeTermsTest.php - Checks the form validation for the merge terms form.
- MergeTermsTest::vocabularyWithoutTermsReturnsEmptyForm in tests/
src/ Kernel/ Form/ MergeTermsTest.php - Tests a term merge form for a vocabulary without terms.
File
- tests/
src/ Kernel/ Form/ MergeTermsTest.php, line 197
Class
- MergeTermsTest
- Tests the term merge form.
Namespace
Drupal\Tests\term_merge\Kernel\FormCode
private function createSubjectUnderTest() {
return new MergeTerms($this->entityTypeManager, $this->privateTempStoreFactory);
}