protected function LinkcheckerLinkExtractorServiceTest::getBlacklistedUrls in Link checker 8
List of blacklisted links to test.
Return value
array Links.
3 calls to LinkcheckerLinkExtractorServiceTest::getBlacklistedUrls()
- LinkcheckerLinkExtractorServiceTest::getTestUrlList in tests/
src/ Kernel/ LinkcheckerLinkExtractorServiceTest.php - List of links to test.
- LinkcheckerLinkExtractorServiceTest::testBlacklistedUrls in tests/
src/ Kernel/ LinkcheckerLinkExtractorServiceTest.php - Test blacklisted URLs.
- LinkcheckerLinkExtractorServiceTest::testExternalUrls in tests/
src/ Kernel/ LinkcheckerLinkExtractorServiceTest.php - Test external URLs.
File
- tests/
src/ Kernel/ LinkcheckerLinkExtractorServiceTest.php, line 325
Class
- LinkcheckerLinkExtractorServiceTest
- Test link extractor service.
Namespace
Drupal\Tests\linkchecker\KernelCode
protected function getBlacklistedUrls() {
return [
'http://example.net/video/foo1.mov',
'http://example.net/video/foo2.mov',
'http://example.net/video/foo3.mov',
'http://example.org/video/foo1.mp4',
'http://example.org/video/foo2.mp4',
'http://example.org/video/foo3.mp4',
'http://example.org/video/foo4.mp4',
'http://example.org/video/foo5.mp4',
'http://example.org/video/foo6.mp4',
'http://example.org/video/player1.swf',
'http://example.org/video/player2.swf',
'http://example.org/video/player3.swf',
'http://example.com/iframe/',
'http://example.com/foo bar/is_valid-hack.test',
'http://example.com/ajax.html#key1=value1&key2=value2',
'http://example.com/test.html#test',
'http://example.com/test.html#test%20ABC',
];
}