You are here

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

Test the command when only decorateForms parameter is provided.

File

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

Class

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

Namespace

Drupal\Tests\ga\Unit\AnalyticsCommand\Linker

Code

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