public function FeedsItemTargetIdFormatterTest::providerTargetIds in Feeds 8.3
Data provider for ::testFeedsItemTargetIdFormatter().
File
- tests/
src/ Functional/ Plugin/ Field/ FieldFormatter/ FeedsItemTargetIdFormatterTest.php, line 62
Class
- FeedsItemTargetIdFormatterTest
- Tests feeds_item_target_id field formatter.
Namespace
Drupal\Tests\feeds\Functional\Plugin\Field\FieldFormatterCode
public function providerTargetIds() {
return [
'empty target id' => [
'',
NULL,
],
'existing target id' => [
'1',
'<div>1</div>',
],
'non existing target id' => [
'123',
NULL,
],
'weird html string target id' => [
'<em>Skeletor!!!!</em>',
NULL,
],
];
}