public function TextTest::testPrepareValue in Feeds 8.3
@covers ::prepareValue
File
- tests/
src/ Unit/ Feeds/ Target/ TextTest.php, line 71
Class
- TextTest
- @coversDefaultClass \Drupal\feeds\Feeds\Target\Text @group feeds
Namespace
Drupal\Tests\feeds\Unit\Feeds\TargetCode
public function testPrepareValue() {
$method = $this
->getProtectedClosure($this->target, 'prepareValue');
$values = [
'value' => 'longstring',
];
$method(0, $values);
$this
->assertSame('longstring', $values['value']);
$this
->assertSame('plain_text', $values['format']);
}