You are here

public function SendTest::testInvalidHitType in Googalytics - Google Analytics 8

Test specifying an invalid hit type.

@expectedException \InvalidArgumentException

@expectedExceptionMessage Invalid hit type specified.

File

tests/src/Unit/AnalyticsCommand/SendTest.php, line 39

Class

SendTest
@coversDefaultClass \Drupal\ga\AnalyticsCommand\Send @group ga

Namespace

Drupal\Tests\ga\Unit\AnalyticsCommand

Code

public function testInvalidHitType() {
  $command = new Send('badtype');
}