public function AutoLinkTest::testWithAnchor in Googalytics - Google Analytics 8
Test the command when the useAnchor parameter is provided.
File
- tests/
src/ Unit/ AnalyticsCommand/ Linker/ AutoLinkTest.php, line 38
Class
- AutoLinkTest
- @coversDefaultClass \Drupal\ga\AnalyticsCommand\Linker\AutoLink @group ga
Namespace
Drupal\Tests\ga\Unit\AnalyticsCommand\LinkerCode
public function testWithAnchor() {
$command = new AutoLink([
'one.example.com',
'two.example.com',
], TRUE);
$this
->assertEquals([
[
'linker:autoLink',
[
'one.example.com',
'two.example.com',
],
TRUE,
],
], $command
->getSettingCommands());
}