public function EventTest::testWithFloatValue in Googalytics - Google Analytics 8
Test with a float event value.
@expectedException \InvalidArgumentException
@expectedExceptionMessage Event value must be a positive integer
File
- tests/
src/ Unit/ AnalyticsCommand/ EventTest.php, line 90
Class
- EventTest
- @coversDefaultClass \Drupal\ga\AnalyticsCommand\Event @group ga
Namespace
Drupal\Tests\ga\Unit\AnalyticsCommandCode
public function testWithFloatValue() {
$command = new Event('category', 'action', NULL, 1.5);
}