You are here

public function CreateTest::testCookieDomainSettingCommand in Googalytics - Google Analytics 8

Test the command array with cookie domain specified.

File

tests/src/Unit/AnalyticsCommand/CreateTest.php, line 35

Class

CreateTest
@coversDefaultClass \Drupal\ga\AnalyticsCommand\Create @group ga

Namespace

Drupal\Tests\ga\Unit\AnalyticsCommand

Code

public function testCookieDomainSettingCommand() {
  $command = new Create('UA-12345678-1', '.example.com');
  $this
    ->assertEquals([
    [
      'create',
      'UA-12345678-1',
      '.example.com',
    ],
  ], $command
    ->getSettingCommands());
}