protected function MergeTermsTestBase::createTerms in Term Merge 8
Create a given amount of taxonomy terms.
Parameters
int $count: The amount of taxonomy terms to create.
1 call to MergeTermsTestBase::createTerms()
- MergeTermsTestBase::setUp in tests/
src/ Kernel/ MergeTermsTestBase.php
File
- tests/
src/ Kernel/ MergeTermsTestBase.php, line 154
Class
- MergeTermsTestBase
- Base class for Term merge kernel tests.
Namespace
Drupal\Tests\term_merge\KernelCode
protected function createTerms($count) {
for ($i = 0; $i < $count; $i++) {
$term = $this
->createTerm($this->vocabulary);
$this->terms[$term
->id()] = $term;
}
}