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