You are here

public function SetTest::testWithTrackerNameSettingCommands in Googalytics - Google Analytics 8

Test the command when a tracker name is provided.

File

tests/src/Unit/AnalyticsCommand/SetTest.php, line 44

Class

SetTest
@coversDefaultClass \Drupal\ga\AnalyticsCommand\Set @group ga

Namespace

Drupal\Tests\ga\Unit\AnalyticsCommand

Code

public function testWithTrackerNameSettingCommands() {
  $command = new Set('key', 'value', [], 'tracker');
  $this
    ->assertEquals([
    [
      'tracker.set',
      'key',
      'value',
    ],
  ], $command
    ->getSettingCommands());
}