File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -74,22 +74,17 @@ public function public_key_is_cached_according_to_cache_control_headers()
7474 Event::fake ();
7575
7676 $ this ->publicKey ->getPublicKey ();
77- Event::assertDispatched (CacheMissed::class);
78- Event::assertDispatched (KeyWritten::class);
79- Event::fake (); // reset
8077
8178 $ this ->publicKey ->getPublicKey ();
82- Event::assertDispatched (CacheHit::class);
83- Event::fake (); // reset
8479
8580 Carbon::setTestNow (Carbon::now ()->addSeconds (3600 ));
8681 $ this ->publicKey ->getPublicKey ();
87- Event::assertDispatched (CacheHit::class);
88- Event::fake (); // reset
8982
9083 Carbon::setTestNow (Carbon::now ()->addSeconds (1 ));
9184 $ this ->publicKey ->getPublicKey ();
92- Event::assertDispatched (CacheMissed::class);
93- Event::assertDispatched (KeyWritten::class);
85+
86+ Event::assertDispatched (CacheMissed::class, 2 );
87+ Event::assertDispatched (KeyWritten::class, 2 );
88+
9489 }
9590}
You can’t perform that action at this time.
0 commit comments