Skip to content

Commit

Permalink
InteractsWithRedis in RateLimitedWithRedisTest
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadim Dvorovenko committed Jan 18, 2025
1 parent 6cb3f8c commit bedbd1e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/Integration/Queue/RateLimitedWithRedisTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Illuminate\Cache\RateLimiting\Limit;
use Illuminate\Contracts\Queue\Job;
use Illuminate\Contracts\Redis\Factory as Redis;
use Illuminate\Foundation\Testing\Concerns\InteractsWithRedis;
use Illuminate\Queue\CallQueuedHandler;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\Middleware\RateLimitedWithRedis;
Expand All @@ -21,6 +22,22 @@
#[RequiresPhpExtension('redis')]
class RateLimitedWithRedisTest extends TestCase
{
use InteractsWithRedis;

protected function setUp(): void
{
parent::setUp();

$this->setUpRedis();
}

protected function tearDown(): void
{
$this->tearDownRedis();

parent::tearDown();
}

public function testUnlimitedJobsAreExecuted()
{
$rateLimiter = $this->app->make(RateLimiter::class);
Expand Down

0 comments on commit bedbd1e

Please sign in to comment.