public function FileTest::testPrepareValue in Feeds 8.3
@covers ::prepareValue @dataProvider dataProviderPrepareValue
File
- tests/
src/ Unit/ Feeds/ Target/ FileTest.php, line 114
Class
- FileTest
- @coversDefaultClass \Drupal\feeds\Feeds\Target\File @group feeds
Namespace
Drupal\Tests\feeds\Unit\Feeds\TargetCode
public function testPrepareValue($expected, array $values, $expected_exception = NULL) {
$method = $this
->getProtectedClosure($this->targetPlugin, 'prepareValue');
if ($expected_exception) {
$this
->expectException($expected_exception);
}
$method(0, $values);
foreach ($expected as $key => $value) {
$this
->assertEquals($value, $values[$key]);
}
}