You are here

protected function WikiTest::getPlugin in Freelinking 4.0.x

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

Get the plugin instance.

Return value

\Drupal\freelinking\Plugin\freelinking\Wiki The wiki plugin.

3 calls to WikiTest::getPlugin()
WikiTest::testBuildLink in tests/src/Unit/Plugin/freelinking/WikiTest.php
Asserts that buildLink is functional.
WikiTest::testGetIndicator in tests/src/Unit/Plugin/freelinking/WikiTest.php
Asserts that getIndicator is functional.
WikiTest::testGetTip in tests/src/Unit/Plugin/freelinking/WikiTest.php
Asserts that getTip is functional.

File

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

Class

WikiTest
Test the freelinking wiki plugin.

Namespace

Drupal\Tests\freelinking\Unit\Plugin\freelinking

Code

protected function getPlugin() {
  $definition = [
    'id' => 'wiki',
    'title' => 'Wiki',
    'hidden' => FALSE,
    'weight' => 0,
    'settings' => [],
  ];
  return new Wiki([], 'wiki', $definition);
}