public function ExtractBody::testSetValues in Search API attachments 9.0.x
Same name and namespace in other branches
- 8 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\UnitCode
public function testSetValues($xml, $expected) {
$text = SolrExtractor::extractBody($xml);
$this
->assertEquals($text, $expected);
}