You are here

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

Test the command array for a basic command without additional options.

File

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

Class

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

Namespace

Drupal\Tests\ga\Unit\AnalyticsCommand\Linker

Code

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