File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 88use Illuminate \Cache \RateLimiting \Limit ;
99use Illuminate \Contracts \Queue \Job ;
1010use Illuminate \Contracts \Redis \Factory as Redis ;
11+ use Illuminate \Foundation \Testing \Concerns \InteractsWithRedis ;
1112use Illuminate \Queue \CallQueuedHandler ;
1213use Illuminate \Queue \InteractsWithQueue ;
1314use Illuminate \Queue \Middleware \RateLimitedWithRedis ;
2122#[RequiresPhpExtension('redis ' )]
2223class RateLimitedWithRedisTest extends TestCase
2324{
25+ use InteractsWithRedis;
26+
27+ protected function setUp (): void
28+ {
29+ parent ::setUp ();
30+
31+ $ this ->setUpRedis ();
32+ }
33+
34+ protected function tearDown (): void
35+ {
36+ $ this ->tearDownRedis ();
37+
38+ parent ::tearDown ();
39+ }
40+
2441 public function testUnlimitedJobsAreExecuted ()
2542 {
2643 $ rateLimiter = $ this ->app ->make (RateLimiter::class);
You can’t perform that action at this time.
0 commit comments