You are here

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

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

File

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

Class

EventTest
@coversDefaultClass \Drupal\ga\AnalyticsCommand\Event @group ga

Namespace

Drupal\Tests\ga\Unit\AnalyticsCommand

Code

public function testBasicSettingCommands() {
  $command = new Event('category', 'action');
  $this
    ->assertEquals([
    [
      'send',
      'event',
      'category',
      'action',
    ],
  ], $command
    ->getSettingCommands());
}