public function EventStorageServiceTest::testGetEventsEmpty in Commerce Google Tag Manager 8
Same name and namespace in other branches
- 8.2 tests/src/Kernel/EventStorageServiceTest.php \Drupal\Tests\commerce_google_tag_manager\Kernel\EventStorageServiceTest::testGetEventsEmpty()
@covers ::getEvents
File
- tests/
src/ Kernel/ EventStorageServiceTest.php, line 119
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
->assertInternalType('array', $result);
$this
->assertEmpty($result);
}