You are here

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

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

File

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

Class

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

Namespace

Drupal\Tests\ga\Unit\AnalyticsCommand

Code

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