public function SetTest::testWithFieldsObjectSettingCommmands in Googalytics - Google Analytics 8
Test the command array when values are provided in fieldsObject.
File
- tests/
src/ Unit/ AnalyticsCommand/ SetTest.php, line 35
Class
- SetTest
- @coversDefaultClass \Drupal\ga\AnalyticsCommand\Set @group ga
Namespace
Drupal\Tests\ga\Unit\AnalyticsCommandCode
public function testWithFieldsObjectSettingCommmands() {
$command = new Set('key', 'value', [
'field1' => 'value1',
]);
$this
->assertEquals([
[
'set',
'key',
'value',
[
'field1' => 'value1',
],
],
], $command
->getSettingCommands());
}