public function CarouselServiceTest::providerTestRenderLink in bootstrap simple carousel 8
Provides test data for providerTestRenderLink.
Return value
array The test data.
File
- tests/
src/ Unit/ Service/ CarouselServiceTest.php, line 141
Class
- CarouselServiceTest
- @coversDefaultClass \Drupal\bootstrap_simple_carousel\Service\CarouselService
Namespace
Drupal\Tests\bootstrap_simple_carousel\Unit\ServiceCode
public function providerTestRenderLink() {
$url = 'http://example.com';
$title = 'example';
$expected = '<a href="http://example.com">example</a>';
$with = [
'#type' => 'link',
'#title' => $title,
'#url' => $url,
'#options' => [
'attributes' => [],
'html' => FALSE,
],
];
return [
[
$url,
$title,
[],
$with,
$expected,
],
];
}