public function EventStorageServiceTest::testFlush 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::testFlush()
@covers ::flush
File
- tests/
src/ Kernel/ EventStorageServiceTest.php, line 131
Class
- EventStorageServiceTest
- @coversDefaultClass \Drupal\commerce_google_tag_manager\EventStorageService
Namespace
Drupal\Tests\commerce_google_tag_manager\KernelCode
public function testFlush() {
$this->tempStore
->set('events', [
'0e05cdf318b5832a7caf62ad11d386f4' => $this->detailEvent,
]);
$this->eventStorage
->flush();
$result = $this->tempStore
->get('events');
$this
->assertNull($result);
}