protected function WikiTest::getPlugin in Freelinking 8.3
Same name and namespace in other branches
- 4.0.x 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 170
Class
- WikiTest
- Test the freelinking wiki plugin.
Namespace
Drupal\Tests\freelinking\Unit\Plugin\freelinkingCode
protected function getPlugin() {
$definition = [
'id' => 'wiki',
'title' => 'Wiki',
'hidden' => FALSE,
'weight' => 0,
'settings' => [],
];
return new Wiki([], 'wiki', $definition);
}