Skip to content

Commit

Permalink
formatting and file renames
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Oct 15, 2020
1 parent 9dd0987 commit 71844a3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Expand Up @@ -7,7 +7,7 @@
use Illuminate\Container\Container;
use Illuminate\Support\Arr;

class RateLimitsJobs
class RateLimited
{
/**
* The rate limiter instance.
Expand Down
Expand Up @@ -7,7 +7,7 @@
use Illuminate\Redis\Limiters\DurationLimiter;
use Illuminate\Support\InteractsWithTime;

class RateLimitsJobsWithRedis extends RateLimitsJobs
class RateLimitedWithRedis extends RateLimited
{
use InteractsWithTime;

Expand Down
Expand Up @@ -9,14 +9,14 @@
use Illuminate\Contracts\Queue\Job;
use Illuminate\Queue\CallQueuedHandler;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\Middleware\RateLimitsJobs;
use Illuminate\Queue\Middleware\RateLimited;
use Mockery as m;
use Orchestra\Testbench\TestCase;

/**
* @group integration
*/
class RateLimitsJobsTest extends TestCase
class RateLimitedTest extends TestCase
{
protected function tearDown(): void
{
Expand Down Expand Up @@ -120,7 +120,7 @@ public function handle()

public function middleware()
{
return [new RateLimitsJobs('test')];
return [new RateLimited('test')];
}
}

Expand Down
Expand Up @@ -10,15 +10,15 @@
use Illuminate\Foundation\Testing\Concerns\InteractsWithRedis;
use Illuminate\Queue\CallQueuedHandler;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\Middleware\RateLimitsJobsWithRedis;
use Illuminate\Queue\Middleware\RateLimitedWithRedis;
use Illuminate\Support\Str;
use Mockery as m;
use Orchestra\Testbench\TestCase;

/**
* @group integration
*/
class RateLimitsJobsWithRedisTest extends TestCase
class RateLimitedWithRedisTest extends TestCase
{
use InteractsWithRedis;

Expand Down Expand Up @@ -156,7 +156,7 @@ public function handle()

public function middleware()
{
return [new RateLimitsJobsWithRedis($this->key)];
return [new RateLimitedWithRedis($this->key)];
}
}

Expand Down

0 comments on commit 71844a3

Please sign in to comment.