You are here

public function ExtractBody::testSetValues in Search API attachments 8

Same name and namespace in other branches
  1. 9.0.x tests/src/Unit/ExtractBody.php \Drupal\Tests\search_api_attachments\Unit\ExtractBody::testSetValues()

Tests setting the Values.

@dataProvider xmlstringProvider

File

tests/src/Unit/ExtractBody.php, line 22

Class

ExtractBody
Tests extracting body text from xml.

Namespace

Drupal\Tests\search_api_attachments\Unit

Code

public function testSetValues($xml, $expected) {
  $text = SolrExtractor::extractBody($xml);
  $this
    ->assertEquals($text, $expected);
}