You are here

public function TermMergerTermCrudTest::mergeTermFunctionsProvider in Term Merge 8

Returns possible merge options that can be selected in the interface.

Return value

array An array of options. Each option has contains the following values:

  • methodName: the selected method for merging to the target term.
  • target: a string representing the target taxonomy term.

File

tests/src/Kernel/TermMergerTermCrudTest.php, line 23

Class

TermMergerTermCrudTest
Tests term merging for taxonomy terms.

Namespace

Drupal\Tests\term_merge\Kernel

Code

public function mergeTermFunctionsProvider() {
  $functions['::mergeIntoNewTerm'] = [
    'methodName' => 'mergeIntoNewTerm',
    'target' => 'new term',
  ];
  $functions['::mergeIntoTerm'] = [
    'methodName' => 'mergeIntoTerm',
    'target' => '',
  ];
  return $functions;
}