You are here

protected function PluginTestTrait::getCalledMethods in Search API 8

Retrieves the methods called on a given plugin.

Parameters

string $plugin_type: The "short" plugin type.

bool $reset: (optional) If TRUE, also clear the list of called methods for that type.

Return value

string[] The methods called on the given plugin.

25 calls to PluginTestTrait::getCalledMethods()
ConfigOverrideKernelTest::testIndexSave in tests/src/Kernel/ConfigEntity/ConfigOverrideKernelTest.php
Checks whether saving an index with overrides works correctly.
DefaultConfigEntityInstallationTest::testExtensionInstallation in tests/src/Kernel/ConfigEntity/DefaultConfigEntityInstallationTest.php
Tests that installing config entities from an extension works correctly.
DefaultConfigEntityInstallationTest::testNormalEntityCreation in tests/src/Kernel/ConfigEntity/DefaultConfigEntityInstallationTest.php
Tests that creating new config entities directly works correctly.
EventsTest::setUp in tests/src/Functional/EventsTest.php
EventsTest::testEvents in tests/src/Functional/EventsTest.php
Tests whether events are correctly dispatched when using the admin UI.

... See full list

File

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

Class

PluginTestTrait
Provides functionality for tests that deal with test plugins.

Namespace

Drupal\search_api_test

Code

protected function getCalledMethods($plugin_type, $reset = TRUE) {
  $key = "search_api_test.{$plugin_type}.methods_called";
  $methods = \Drupal::state()
    ->get($key, []);
  if ($reset) {
    \Drupal::state()
      ->delete($key);
  }
  return $methods;
}