You are here

public function EventStorageServiceTest::testGetEventsEmpty 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::testGetEventsEmpty()

@covers ::getEvents

File

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

Class

EventStorageServiceTest
@coversDefaultClass \Drupal\commerce_google_tag_manager\EventStorageService

Namespace

Drupal\Tests\commerce_google_tag_manager\Kernel

Code

public function testGetEventsEmpty() {
  $this->tempStore
    ->set('events', NULL);
  $result = $this->eventStorage
    ->getEvents();
  $this
    ->assertIsArray($result);
  $this
    ->assertEmpty($result);
}