You are here

public function MergeTermsTestBase::createVocabulary in Term Merge 8

Create a new vocabulary with random properties.

Return value

\Drupal\taxonomy\Entity\Vocabulary The created vocabulary

9 calls to MergeTermsTestBase::createVocabulary()
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.

... See full list

File

tests/src/Kernel/MergeTermsTestBase.php, line 69

Class

MergeTermsTestBase
Base class for Term merge kernel tests.

Namespace

Drupal\Tests\term_merge\Kernel

Code

public function createVocabulary() {

  /** @var \Drupal\taxonomy\Entity\Vocabulary $vocabulary */
  $vocabulary = $this
    ->traitCreateVocabulary();
  return $vocabulary;
}