You are here

public function DimensionTest::testIndexValue in Googalytics - Google Analytics 8

Test a valid index and value.

File

tests/src/Unit/AnalyticsCommand/DimensionTest.php, line 17

Class

DimensionTest
@coversDefaultClass \Drupal\ga\AnalyticsCommand\Dimension @group ga

Namespace

Drupal\Tests\ga\Unit\AnalyticsCommand

Code

public function testIndexValue() {
  $command = new Dimension(42, 'value');
  $this
    ->assertEquals([
    [
      'set',
      'dimension42',
      'value',
    ],
  ], $command
    ->getSettingCommands());
}