From dd24dee6dc605170734c9a454149fb77196368fc Mon Sep 17 00:00:00 2001 From: Joe Dixon Date: Mon, 20 Nov 2023 21:12:09 +0000 Subject: [PATCH] fix test --- tests/Feature/Reverb/ServerTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/Feature/Reverb/ServerTest.php b/tests/Feature/Reverb/ServerTest.php index e2760a04..923cba6a 100644 --- a/tests/Feature/Reverb/ServerTest.php +++ b/tests/Feature/Reverb/ServerTest.php @@ -126,12 +126,12 @@ $this->triggerEvent( 'test-channel', - 'App\\Events\\TestEvent', + 'TestEvent', ['foo' => 'bar'] ); foreach (await(all([$promiseOne, $promiseTwo, $promiseThree])) as $response) { - expect($response)->toBe('{"event":"App\\\\Events\\\\TestEvent","data":{"foo":"bar"},"channel":"test-channel"}'); + expect($response)->toBe('{"event":"TestEvent","data":{"foo":"bar"},"channel":"test-channel"}'); } }); @@ -142,11 +142,11 @@ $this->triggerEvent( 'presence-test-channel', - 'App\\Events\\TestEvent', + 'TestEvent', ['foo' => 'bar'] ); - expect(await($promise))->toBe('{"event":"App\\\\Events\\\\TestEvent","data":{"foo":"bar"},"channel":"presence-test-channel"}'); + expect(await($promise))->toBe('{"event":"TestEvent","data":{"foo":"bar"},"channel":"presence-test-channel"}'); }); it('can respond to a ping', function () { @@ -299,11 +299,11 @@ $this->triggerEvent( 'presence-test-channel', - 'App\\Events\\TestEvent', + 'TestEvent', ['foo' => 'bar'] ); - expect(await($promise))->toBe('{"event":"App\\\\Events\\\\TestEvent","data":{"foo":"bar"},"channel":"presence-test-channel"}'); + expect(await($promise))->toBe('{"event":"TestEvent","data":{"foo":"bar"},"channel":"presence-test-channel"}'); }); it('can publish and subscribe to a client whisper', function () {