public function FeedsItemUrlFormatterTest::providerUrls in Feeds 8.3
Data provider for ::testFeedsItemUrlFormatter().
File
- tests/
src/ Functional/ Plugin/ Field/ FieldFormatter/ FeedsItemUrlFormatterTest.php, line 57
Class
- FeedsItemUrlFormatterTest
- Tests feeds_item_url field formatter.
Namespace
Drupal\Tests\feeds\Functional\Plugin\Field\FieldFormatterCode
public function providerUrls() {
return [
'empty url' => [
'',
NULL,
],
'http url' => [
'http://en.wikipedia.org/wiki/Star_Control',
'<div><a href="http://en.wikipedia.org/wiki/Star_Control">http://en.wikipedia.org/wiki/Star_Control</a></div>',
],
'https url' => [
'https://en.wikipedia.org/wiki/Star_Control_II',
'<div><a href="https://en.wikipedia.org/wiki/Star_Control_II">https://en.wikipedia.org/wiki/Star_Control_II</a></div>',
],
'non http or https html url' => [
'<strong>SkyNet activated</strong>',
NULL,
],
];
}