You are here

public function RequirePluginTest::testWithTrackerNameSettingCommands in Googalytics - Google Analytics 8

Test the command when a tracker name is provided.

File

tests/src/Unit/AnalyticsCommand/RequirePluginTest.php, line 44

Class

RequirePluginTest
@coversDefaultClass \Drupal\ga\AnalyticsCommand\RequirePlugin @group ga

Namespace

Drupal\Tests\ga\Unit\AnalyticsCommand

Code

public function testWithTrackerNameSettingCommands() {
  $command = new RequirePlugin('pluginName', [], 'tracker');
  $this
    ->assertEquals([
    [
      'tracker.require',
      'pluginName',
    ],
  ], $command
    ->getSettingCommands());
}