You are here

protected function LinkcheckerLinkExtractorServiceTest::getRelativeUrls in Link checker 8

List of relative links to test.

Return value

array Links.

2 calls to LinkcheckerLinkExtractorServiceTest::getRelativeUrls()
LinkcheckerLinkExtractorServiceTest::getTestUrlList in tests/src/Kernel/LinkcheckerLinkExtractorServiceTest.php
List of links to test.
LinkcheckerLinkExtractorServiceTest::testRelativeUrls in tests/src/Kernel/LinkcheckerLinkExtractorServiceTest.php
Test relative URLs.

File

tests/src/Kernel/LinkcheckerLinkExtractorServiceTest.php, line 353

Class

LinkcheckerLinkExtractorServiceTest
Test link extractor service.

Namespace

Drupal\Tests\linkchecker\Kernel

Code

protected function getRelativeUrls() {
  return [
    '../foo1/test.png' => $this->baseUrl . '/foo1/test.png',
    '/foo2/test.png' => $this->baseUrl . '/foo2/test.png',
    'test.png' => $this->baseUrl . '/' . $this->folder1 . '/test.png',
    '../foo1/bar1' => $this->baseUrl . '/foo1/bar1',
    './foo2/bar2' => $this->baseUrl . '/' . $this->folder1 . '/foo2/bar2',
    '../foo3/../foo4/foo5' => $this->baseUrl . '/foo4/foo5',
    './foo4/../foo5/foo6' => $this->baseUrl . '/' . $this->folder1 . '/foo5/foo6',
    './foo4/./foo5/foo6' => $this->baseUrl . '/' . $this->folder1 . '/foo4/foo5/foo6',
    './test/foo bar/is_valid-hack.test' => $this->baseUrl . '/' . $this->folder1 . '/test/foo bar/is_valid-hack.test',
    'flash.png' => $this->baseUrl . '/' . $this->folder1 . '/flash.png',
    'ritmo.mid' => $this->baseUrl . '/' . $this->folder1 . '/ritmo.mid',
    'my_ogg_video.ogg' => $this->baseUrl . '/' . $this->folder1 . '/my_ogg_video.ogg',
    'video.ogv' => $this->baseUrl . '/' . $this->folder1 . '/video.ogv',
    'flvplayer1.swf' => $this->baseUrl . '/' . $this->folder1 . '/flvplayer1.swf',
    'flvplayer2.swf' => $this->baseUrl . '/' . $this->folder1 . '/flvplayer2.swf',
    'foo.ogg' => $this->baseUrl . '/' . $this->folder1 . '/foo.ogg',
  ];
}