You are here

public function EventStorageServiceTest::testGetEvents in Commerce Google Tag Manager 8.2

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

@covers ::getEvents

File

tests/src/Kernel/EventStorageServiceTest.php, line 110

Class

EventStorageServiceTest
@coversDefaultClass \Drupal\commerce_google_tag_manager\EventStorageService

Namespace

Drupal\Tests\commerce_google_tag_manager\Kernel

Code

public function testGetEvents() {
  $this->tempStore
    ->set('events', [
    '0e05cdf318b5832a7caf62ad11d386f4' => $this->detailEvent,
  ]);
  $result = $this->eventStorage
    ->getEvents();
  $this
    ->assertSame([
    0 => $this->detailEvent,
  ], $result);
}