public function WikiTest::testGetIndicator 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::testGetIndicator()
Asserts that getIndicator is functional.
@dataProvider indicatorProvider
Parameters
string $indicator: The indicator string.
int $expected: The expected output from preg_match().
File
- tests/
src/ Unit/ Plugin/ freelinking/ WikiTest.php, line 66
Class
- WikiTest
- Test the freelinking wiki plugin.
Namespace
Drupal\Tests\freelinking\Unit\Plugin\freelinkingCode
public function testGetIndicator($indicator, $expected) {
$plugin = $this
->getPlugin();
$this
->assertEquals($expected, preg_match($plugin
->getIndicator(), $indicator));
}