public function PageviewTest::testWithTrackerNameSettingCommands in Googalytics - Google Analytics 8
Test the command when a tracker name is provided.
File
- tests/
src/ Unit/ AnalyticsCommand/ PageviewTest.php, line 44
Class
- PageviewTest
- @coversDefaultClass \Drupal\ga\AnalyticsCommand\Pageview @group ga
Namespace
Drupal\Tests\ga\Unit\AnalyticsCommandCode
public function testWithTrackerNameSettingCommands() {
$command = new Pageview([], 'tracker');
$this
->assertEquals([
[
'tracker.send',
'pageview',
],
], $command
->getSettingCommands());
}