public function MergeTermsTest::vocabularyWithoutTermsReturnsEmptyForm in Term Merge 8
Tests a term merge form for a vocabulary without terms.
@test
File
- tests/
src/ Kernel/ Form/ MergeTermsTest.php, line 36
Class
- MergeTermsTest
- Tests the term merge form.
Namespace
Drupal\Tests\term_merge\Kernel\FormCode
public function vocabularyWithoutTermsReturnsEmptyForm() {
$vocabulary = $this
->createVocabulary();
$sut = $this
->createSubjectUnderTest();
$actual = $sut
->buildForm([], new FormState(), $vocabulary);
self::assertEquals($this
->getEmptyFormExpectation(), $actual);
}