You are here

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

Test the command when a tracker name is provided.

File

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

Class

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

Namespace

Drupal\Tests\ga\Unit\AnalyticsCommand

Code

public function testWithTrackerNameSettingCommands() {
  $command = new Create('UA-12345678-1', 'auto', 'tracker', []);
  $this
    ->assertEquals([
    [
      'create',
      'UA-12345678-1',
      'auto',
      'tracker',
    ],
  ], $command
    ->getSettingCommands());
}