You are here

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

Test an invalid index of type float.

@expectedException \InvalidArgumentException

File

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

Class

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

Namespace

Drupal\Tests\ga\Unit\AnalyticsCommand

Code

public function testFloatIndex() {
  new Metric(4.2, 123);
}