public function EventTest::testWithZeroValueSettingCommands in Googalytics - Google Analytics 8
Test the command array when zero value is provided, but not label.
File
- tests/
src/ Unit/ AnalyticsCommand/ EventTest.php, line 74
Class
- EventTest
- @coversDefaultClass \Drupal\ga\AnalyticsCommand\Event @group ga
Namespace
Drupal\Tests\ga\Unit\AnalyticsCommandCode
public function testWithZeroValueSettingCommands() {
$command = new Event('category', 'action', NULL, 0);
$this
->assertEquals([
[
'send',
'event',
'category',
'action',
[
'eventValue' => 0,
],
],
], $command
->getSettingCommands());
}