You are here

public function MergeTermsConfirmTest::termMergerMethodProvider 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 method name associated with the selected merge option.
  • target: a string representing the target taxonomy term.

File

tests/src/Kernel/Form/MergeTermsConfirmTest.php, line 215

Class

MergeTermsConfirmTest
Tests the Merge terms confirm form.

Namespace

Drupal\Tests\term_merge\Kernel\Form

Code

public function termMergerMethodProvider() {
  $methods['new term'] = [
    'methodName' => 'mergeIntoNewTerm',
    'target' => 'New term',
  ];
  $methods['existing term'] = [
    'methodName' => 'mergeIntoTerm',
    'target' => '',
  ];
  return $methods;
}