You are here

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

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

File

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

Class

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

Namespace

Drupal\Tests\ga\Unit\AnalyticsCommand

Code

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