public function EventStorageServiceTest::testGetEventsEmpty in Commerce Google Tag Manager 8.2
Same name and namespace in other branches
- 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\KernelCode
public function testGetEventsEmpty() {
$this->tempStore
->set('events', NULL);
$result = $this->eventStorage
->getEvents();
$this
->assertIsArray($result);
$this
->assertEmpty($result);
}