You are here

public function WikiTest::buildLinkProvider in Freelinking 8.3

Same name and namespace in other branches
  1. 4.0.x tests/src/Unit/Plugin/freelinking/WikiTest.php \Drupal\Tests\freelinking\Unit\Plugin\freelinking\WikiTest::buildLinkProvider()

Provide test parameters for ::testBuildLink().

Return value

array An array of test parameters.

File

tests/src/Unit/Plugin/freelinking/WikiTest.php, line 141

Class

WikiTest
Test the freelinking wiki plugin.

Namespace

Drupal\Tests\freelinking\Unit\Plugin\freelinking

Code

public function buildLinkProvider() {
  return [
    [
      'wikipedia',
      'Main_Page',
      'en',
      'https://en.wikipedia.org/wiki/Main_Page',
    ],
    [
      'wikipedia',
      'Portada',
      'es',
      'https://es.wikipedia.org/wiki/Portada',
    ],
    [
      'wp',
      'Main_Page',
      'en',
      'https://en.wikipedia.org/wiki/Main_Page',
    ],
    [
      'wikiquote',
      'Main_Page',
      'en',
      'https://en.wikiquote.org/wiki/Main_Page',
    ],
    [
      'wikiquote',
      'Portada',
      'es',
      'https://es.wikiquote.org/wiki/Portada',
    ],
    [
      'wq',
      'Main_Page',
      'en',
      'https://en.wikiquote.org/wiki/Main_Page',
    ],
    [
      'wiktionary',
      'Main_Page',
      'en',
      'https://en.wiktionary.org/wiki/Main_Page',
    ],
    [
      'wiktionary',
      'Portada',
      'es',
      'https://es.wiktionary.org/wiki/Portada',
    ],
    [
      'wt',
      'Main_Page',
      'en',
      'https://en.wiktionary.org/wiki/Main_Page',
    ],
    [
      'wikisource',
      'Main_Page',
      'en',
      'https://en.wikisource.org/wiki/Main_Page',
    ],
    [
      'wikisource',
      'Portada',
      'es',
      'https://es.wikisource.org/wiki/Portada',
    ],
    [
      'ws',
      'Main_Page',
      'en',
      'https://en.wikisource.org/wiki/Main_Page',
    ],
    [
      'wikinews',
      'Main_Page',
      'en',
      'https://en.wikinews.org/wiki/Main_Page',
    ],
    [
      'wikinews',
      'Portada',
      'es',
      'https://es.wikinews.org/wiki/Portada',
    ],
    [
      'wn',
      'Main_Page',
      'en',
      'https://en.wikinews.org/wiki/Main_Page',
    ],
    [
      'wikibooks',
      'Main_Page',
      'en',
      'https://en.wikibooks.org/wiki/Main_Page',
    ],
    [
      'wikibooks',
      'Portada',
      'es',
      'https://es.wikibooks.org/wiki/Portada',
    ],
    [
      'wb',
      'Main_Page',
      'en',
      'https://en.wikibooks.org/wiki/Main_Page',
    ],
  ];
}