You are here

public function AlterProductEventTest::testGetProductVariation in Commerce Google Tag Manager 8.2

Same name and namespace in other branches
  1. 8 tests/src/Kernel/AlterProductEventTest.php \Drupal\Tests\commerce_google_tag_manager\Kernel\AlterProductEventTest::testGetProductVariation()

@covers ::getProductVariation

File

tests/src/Kernel/AlterProductEventTest.php, line 78

Class

AlterProductEventTest
@coversDefaultClass \Drupal\commerce_google_tag_manager\Event\AlterProductEvent

Namespace

Drupal\Tests\commerce_google_tag_manager\Kernel

Code

public function testGetProductVariation() {
  $event = new AlterProductEvent($this->product, $this->variation);
  $this
    ->assertInstanceOf(ProductVariationInterface::class, $event
    ->getProductVariation());
}