You are here

protected function LinkcheckerLinkLinkExtractorTest::getTestLinks in Link checker 8

Get test link field values.

Return value

array Link field values

1 call to LinkcheckerLinkLinkExtractorTest::getTestLinks()
LinkcheckerLinkLinkExtractorTest::testLinkExtractor in tests/src/Kernel/LinkcheckerLinkLinkExtractorTest.php
Test Link field extractor.

File

tests/src/Kernel/LinkcheckerLinkLinkExtractorTest.php, line 154

Class

LinkcheckerLinkLinkExtractorTest
Test html link extractor.

Namespace

Drupal\Tests\linkchecker\Kernel

Code

protected function getTestLinks() {
  $links = $this
    ->getTestUrlList();

  // Fill an array of link field values, where the URL and title are both
  // URLs.
  $values = [];
  foreach ($links as $link) {
    $values[] = [
      'uri' => $link,
      'title' => $link,
    ];
  }
  return $values;
}