class TermMergerMock in Term Merge 8
Term merger mock class used for testing purposes.
Hierarchy
- class \Drupal\Tests\term_merge\Kernel\TestDoubles\TermMergerDummy implements TermMergerInterface
- class \Drupal\Tests\term_merge\Kernel\TestDoubles\TermMergerMock
Expanded class hierarchy of TermMergerMock
File
- tests/
src/ Kernel/ TestDoubles/ TermMergerMock.php, line 10
Namespace
Drupal\Tests\term_merge\Kernel\TestDoublesView source
class TermMergerMock extends TermMergerDummy {
/**
* {@inheritdoc}
*/
public function mergeIntoNewTerm(array $termsToMerge, $newTermLabel) {
return new Term([], 'taxonomy_term');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TermMergerDummy:: |
public | function |
Merges one or more terms into an existing term. Overrides TermMergerInterface:: |
1 |
TermMergerMock:: |
public | function |
Merges two or more terms into a new term. Overrides TermMergerDummy:: |
1 |