You are here

public function AutoLinkTest::testWithAnchorAndForm in Googalytics - Google Analytics 8

Test the command when useAnchor and decorateForms parameters are provided.

File

tests/src/Unit/AnalyticsCommand/Linker/AutoLinkTest.php, line 50

Class

AutoLinkTest
@coversDefaultClass \Drupal\ga\AnalyticsCommand\Linker\AutoLink @group ga

Namespace

Drupal\Tests\ga\Unit\AnalyticsCommand\Linker

Code

public function testWithAnchorAndForm() {
  $command = new AutoLink([
    'one.example.com',
    'two.example.com',
  ], TRUE, TRUE);
  $this
    ->assertEquals([
    [
      'linker:autoLink',
      [
        'one.example.com',
        'two.example.com',
      ],
      TRUE,
      TRUE,
    ],
  ], $command
    ->getSettingCommands());
}