You are here

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

Test a valid index and value.

File

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

Class

MetricTest
@coversDefaultClass \Drupal\ga\AnalyticsCommand\Metric @group ga

Namespace

Drupal\Tests\ga\Unit\AnalyticsCommand

Code

public function testIndexValue() {
  $command = new Metric(42, 123);
  $this
    ->assertEquals([
    [
      'set',
      'metric42',
      123,
    ],
  ], $command
    ->getSettingCommands());
}