You are here

protected function LinkcheckerHtmlLinkExtractorTest::getTestUrlList in Link checker 8

List of links to test.

Return value

array Key is a link, value is a config.

1 call to LinkcheckerHtmlLinkExtractorTest::getTestUrlList()
LinkcheckerHtmlLinkExtractorTest::testHtmlExtractor in tests/src/Kernel/LinkcheckerHtmlLinkExtractorTest.php
Test HTML extractor.

File

tests/src/Kernel/LinkcheckerHtmlLinkExtractorTest.php, line 278

Class

LinkcheckerHtmlLinkExtractorTest
Test html link extractor.

Namespace

Drupal\Tests\linkchecker\Kernel

Code

protected function getTestUrlList() {
  return [
    'http://www.lagrandeepicerie.fr/#e-boutique/Les_produits_du_moment,2/coffret_vins_doux_naturels,149' => 'from_a',
    'http://wetterservice.msn.de/phclip.swf?zip=60329&ort=Frankfurt' => 'from_object',
    'http://www.msn.de/' => 'from_a',
    'http://www.adobe.com/' => 'from_a',
    'http://www.apple.com/qtactivex/qtplugin.cab' => 'from_object',
    'http://example.net/video/foo1.mov' => 'from_object',
    'http://example.net/video/foo2.mov' => 'from_object',
    'http://example.net/video/foo3.mov' => 'from_object',
    'http://example.org/video/foo1.mp4' => 'from_object',
    'http://example.org/video/foo2.mp4' => 'from_object',
    'http://example.org/video/foo3.mp4' => 'from_a',
    'http://example.org/video/foo4.mp4' => 'from_object',
    'http://example.org/video/foo5.mp4' => 'from_object',
    'http://example.org/video/foo6.mp4' => 'from_object',
    'http://example.org/video/player1.swf' => 'from_object',
    'http://example.org/video/player2.swf' => 'from_object',
    'http://example.org/video/player3.swf' => 'from_object',
    'http://example.com/iframe/' => 'from_iframe',
    'http://www.theora.org/cortado.jar' => 'from_object',
    'http://v2v.cc/~j/theora_testsuite/pixel_aspect_ratio.ogg' => 'from_video',
    'http://v2v.cc/~j/theora_testsuite/pixel_aspect_ratio.mov' => 'from_video',
    'http://v2v.cc/~j/theora_testsuite/320x240.ogg' => 'from_video',
    'http://example.com/foo bar/is_valid-hack.test' => 'from_a',
    'http://example.com/ajax.html#key1=value1&key2=value2' => 'from_a',
    'http://example.com/test.html#test' => 'from_a',
    'http://example.com/test.html#test%20ABC' => 'from_a',
    '../foo1/test.png' => 'from_img',
    'test.png' => 'from_img',
    '../foo1/bar1' => 'from_a',
    './foo2/bar2' => 'from_a',
    '../foo3/../foo4/foo5' => 'from_a',
    './foo4/../foo5/foo6' => 'from_a',
    './foo4/./foo5/foo6' => 'from_a',
    './test/foo bar/is_valid-hack.test' => 'from_a',
    'flash.png' => 'from_img',
    'ritmo.mid' => 'from_object',
    'my_ogg_video.ogg' => 'from_video',
    'my_ogg_video2.ogg' => 'from_object',
    'video.ogv' => 'from_video',
    'flvplayer1.swf' => 'from_object',
    'flvplayer2.swf' => 'from_object',
    'foo.ogg' => 'from_video',
    'mailto:test@example.com' => 'from_a',
    'javascript:foo()' => 'from_a',
  ];
}