You are here

protected function RenderedItemTest::checkRenderedUser in Search API 8

Verifies that a certain user has been rendered correctly.

Parameters

\Drupal\user\UserInterface $user: The user.

string $field_value: The rendered field value.

1 call to RenderedItemTest::checkRenderedUser()
RenderedItemTest::testAddFieldValues in tests/src/Kernel/Processor/RenderedItemTest.php
Tests whether the rendered_item field is correctly filled by the processor.

File

tests/src/Kernel/Processor/RenderedItemTest.php, line 307

Class

RenderedItemTest
Tests the "Rendered item" processor.

Namespace

Drupal\Tests\search_api\Kernel\Processor

Code

protected function checkRenderedUser(UserInterface $user, $field_value) {
  $this
    ->assertStringContainsString('>Member for<', $field_value);
}