public function TermMergerSpy::mergeIntoTerm in Term Merge 8
Merges one or more terms into an existing term.
Parameters
array $termsToMerge: The terms to merge.
\Drupal\taxonomy\TermInterface $targetTerm: The term to merge them into.
Overrides TermMergerDummy::mergeIntoTerm
File
- tests/
src/ Kernel/ TestDoubles/ TermMergerSpy.php, line 25
Class
- TermMergerSpy
- A term merge test class that keeps a list of called functions.
Namespace
Drupal\Tests\term_merge\Kernel\TestDoublesCode
public function mergeIntoTerm(array $termsToMerge, TermInterface $targetTerm) {
$this->functionCalls[__FUNCTION__] = [
$termsToMerge,
$targetTerm,
];
parent::mergeIntoTerm($termsToMerge, $targetTerm);
}