You are here

protected function AllTermsArgumentTest::executePluginQuery in Search API 8

Executes the plugin's query() method, after resetting the original state.

Parameters

string $argument: The argument string to set on the plugin.

1 call to AllTermsArgumentTest::executePluginQuery()
AllTermsArgumentTest::testConditionalFilter in tests/src/Unit/Views/AllTermsArgumentTest.php
Tests whether the contextual filter works correctly.

File

tests/src/Unit/Views/AllTermsArgumentTest.php, line 237

Class

AllTermsArgumentTest
Tests whether the SearchApiAllTerms argument plugin works correctly.

Namespace

Drupal\Tests\search_api\Unit\Views

Code

protected function executePluginQuery(string $argument) {
  $this->conditionGroup = NULL;
  $this->aborted = FALSE;
  $this->plugin->value = NULL;
  $this->plugin->argument_validated = NULL;
  $this->plugin->argument = $argument;
  $this->plugin
    ->query();
}