You are here

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

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

File

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

Class

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

Namespace

Drupal\Tests\ga\Unit\AnalyticsCommand

Code

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