You are here

protected function PluginTestTrait::getMethodArguments in Search API 8

Retrieves the arguments of a certain method called on the given plugin.

Parameters

string $plugin_type: The "short" plugin type.

string $method: The method name.

Return value

array The arguments of the last call to the method.

2 calls to PluginTestTrait::getMethodArguments()
IndexChangesTest::testTrackerChange in tests/src/Kernel/Index/IndexChangesTest.php
Tests correct reaction when the index's tracker changes.
IndexLoadItemsTest::testMissingItems in tests/src/Kernel/Index/IndexLoadItemsTest.php
Verifies that missing items are correctly detected and removed.

File

tests/search_api_test/src/PluginTestTrait.php, line 89

Class

PluginTestTrait
Provides functionality for tests that deal with test plugins.

Namespace

Drupal\search_api_test

Code

protected function getMethodArguments($plugin_type, $method) {
  $key = "search_api_test.{$plugin_type}.method_arguments.{$method}";
  return \Drupal::state()
    ->get($key);
}