You are here

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

Test an invalid index of type string.

@expectedException \InvalidArgumentException

File

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

Class

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

Namespace

Drupal\Tests\ga\Unit\AnalyticsCommand

Code

public function testStringIndex() {
  new Metric('index', 123);
}