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