You are here

protected function RenderedItemTest::checkRenderedComment in Search API 8

Verifies that a certain comment has been rendered correctly.

Parameters

\Drupal\comment\CommentInterface $comment: The comment.

string $field_value: The rendered field value.

1 call to RenderedItemTest::checkRenderedComment()
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 319

Class

RenderedItemTest
Tests the "Rendered item" processor.

Namespace

Drupal\Tests\search_api\Kernel\Processor

Code

protected function checkRenderedComment(CommentInterface $comment, $field_value) {
  $this
    ->assertStringContainsString('>' . $comment
    ->label() . '<', $field_value);
}