You are here

class TermMergerMock in Term Merge 8

Term merger mock class used for testing purposes.

Hierarchy

Expanded class hierarchy of TermMergerMock

File

tests/src/Kernel/TestDoubles/TermMergerMock.php, line 10

Namespace

Drupal\Tests\term_merge\Kernel\TestDoubles
View source
class TermMergerMock extends TermMergerDummy {

  /**
   * {@inheritdoc}
   */
  public function mergeIntoNewTerm(array $termsToMerge, $newTermLabel) {
    return new Term([], 'taxonomy_term');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
TermMergerDummy::mergeIntoTerm public function Merges one or more terms into an existing term. Overrides TermMergerInterface::mergeIntoTerm 1
TermMergerMock::mergeIntoNewTerm public function Merges two or more terms into a new term. Overrides TermMergerDummy::mergeIntoNewTerm 1