You are here

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

Test the command when a tracker name is provided.

File

tests/src/Unit/AnalyticsCommand/SendTest.php, line 55

Class

SendTest
@coversDefaultClass \Drupal\ga\AnalyticsCommand\Send @group ga

Namespace

Drupal\Tests\ga\Unit\AnalyticsCommand

Code

public function testWithTrackerNameSettingCommands() {
  $command = new Send('pageview', [], 'tracker');
  $this
    ->assertEquals([
    [
      'tracker.send',
      'pageview',
    ],
  ], $command
    ->getSettingCommands());
}