You are here

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

Test a valid index of type string and value.

File

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

Class

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

Namespace

Drupal\Tests\ga\Unit\AnalyticsCommand

Code

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