You are here

public function TaxonomyTermArgumentTest::testReturnsArgumentIfSet in Search API 8

Tests that the set argument is returned when no value is provided.

@covers ::title

File

tests/src/Unit/Views/TaxonomyTermArgumentTest.php, line 45

Class

TaxonomyTermArgumentTest
Tests whether the SearchApiTerm argument plugin works correctly.

Namespace

Drupal\Tests\search_api\Unit\Views

Code

public function testReturnsArgumentIfSet() {
  $plugin = $this
    ->getSubjectUnderTest('argument');
  $plugin->value = [];
  $this
    ->assertEquals('argument', $plugin
    ->title());
}