public function GoogleSearchTest::testGetIndicator in Freelinking 8.3
Same name and namespace in other branches
- 4.0.x tests/src/Unit/Plugin/freelinking/GoogleSearchTest.php \Drupal\Tests\freelinking\Unit\Plugin\freelinking\GoogleSearchTest::testGetIndicator()
Assert that indicator functions for both google and core search.
@dataProvider indicatorProvider
Parameters
string $indicator: The indicator string.
int $expected: The expected output from preg_match.
File
- tests/
src/ Unit/ Plugin/ freelinking/ GoogleSearchTest.php, line 71
Class
- GoogleSearchTest
- Tests the google search plugin.
Namespace
Drupal\Tests\freelinking\Unit\Plugin\freelinkingCode
public function testGetIndicator($indicator, $expected) {
$this
->assertEquals($expected, preg_match($this->plugin
->getIndicator(), $indicator));
}