Skip to content

Commit

Permalink
rename test case
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon committed Nov 20, 2023
1 parent d290a16 commit 9470b39
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions tests/Feature/Ratchet/ChannelControllerTest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

use Laravel\Reverb\Tests\RatchetTestCase;
use Laravel\Reverb\Tests\ReverbTestCase;

use function React\Async\await;

uses(RatchetTestCase::class);
uses(ReverbTestCase::class);

it('can return data for a single channel', function () {
$this->subscribe('test-channel-one');
Expand Down
4 changes: 2 additions & 2 deletions tests/Feature/Ratchet/ChannelUsersControllerTest.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

use Laravel\Reverb\Tests\RatchetTestCase;
use Laravel\Reverb\Tests\ReverbTestCase;
use React\Http\Message\ResponseException;

use function React\Async\await;

uses(RatchetTestCase::class);
uses(ReverbTestCase::class);

it('returns an error when presence channel not provided', function () {
await($this->signedRequest('channels/test-channel/users'));
Expand Down
4 changes: 2 additions & 2 deletions tests/Feature/Ratchet/ChannelsControllerTest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

use Laravel\Reverb\Tests\RatchetTestCase;
use Laravel\Reverb\Tests\ReverbTestCase;

use function React\Async\await;

uses(RatchetTestCase::class);
uses(ReverbTestCase::class);

it('can return all channel information', function () {
$this->subscribe('test-channel-one');
Expand Down
4 changes: 2 additions & 2 deletions tests/Feature/Ratchet/EventsBatchControllerTest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

use Laravel\Reverb\Tests\RatchetTestCase;
use Laravel\Reverb\Tests\ReverbTestCase;

use function React\Async\await;

uses(RatchetTestCase::class);
uses(ReverbTestCase::class);

it('can receive an event batch trigger', function () {
$response = await($this->signedPostRequest('batch_events', [[
Expand Down
4 changes: 2 additions & 2 deletions tests/Feature/Ratchet/EventsControllerTest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

use Laravel\Reverb\Tests\RatchetTestCase;
use Laravel\Reverb\Tests\ReverbTestCase;

use function React\Async\await;

uses(RatchetTestCase::class);
uses(ReverbTestCase::class);

it('can receive and event trigger', function () {
$response = await($this->signedPostRequest('events', [
Expand Down
4 changes: 2 additions & 2 deletions tests/Feature/Ratchet/ServerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
use Laravel\Reverb\Contracts\ConnectionManager;
use Laravel\Reverb\Jobs\PingInactiveConnections;
use Laravel\Reverb\Jobs\PruneStaleConnections;
use Laravel\Reverb\Tests\RatchetTestCase;
use Laravel\Reverb\Tests\ReverbTestCase;
use React\Promise\Deferred;

use function Ratchet\Client\connect;
use function React\Async\await;
use function React\Promise\all;

uses(RatchetTestCase::class);
uses(ReverbTestCase::class);

it('can handle a new connection', function () {
$this->connect();
Expand Down
4 changes: 2 additions & 2 deletions tests/Feature/Ratchet/UsersTerminateControllerTest.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

use Illuminate\Support\Arr;
use Laravel\Reverb\Tests\RatchetTestCase;
use Laravel\Reverb\Tests\ReverbTestCase;
use React\Http\Message\ResponseException;

use function React\Async\await;

uses(RatchetTestCase::class);
uses(ReverbTestCase::class);

it('returns an error when connection cannot be found', function () {
await($this->signedPostRequest('channels/users/not-a-user/terminate_connections'));
Expand Down
2 changes: 1 addition & 1 deletion tests/RatchetTestCase.php → tests/ReverbTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
use function React\Async\await;
use function React\Promise\Timer\timeout;

class RatchetTestCase extends TestCase
class ReverbTestCase extends TestCase
{
use InteractsWithAsyncRedis;

Expand Down

0 comments on commit 9470b39

Please sign in to comment.