1
0
Fork 0
mirror of synced 2024-06-14 08:44:49 +12:00

Test that secret is not included in realtime payload

This commit is contained in:
Jake Barnby 2024-04-03 16:37:58 +13:00
parent fb408636a4
commit 6f18303fcc
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -290,7 +290,6 @@ class RealtimeCustomClientTest extends Scope
$this->assertEquals($name, $response['data']['payload']['name']);
/**
* Test Account Password Event
*/
@ -376,6 +375,7 @@ class RealtimeCustomClientTest extends Scope
$this->assertNotEmpty($response['data']);
$this->assertCount(2, $response['data']['channels']);
$this->assertArrayHasKey('timestamp', $response['data']);
$this->assertArrayNotHasKey('secret', $response['data']);
$this->assertContains('account', $response['data']['channels']);
$this->assertContains('account.' . $userId, $response['data']['channels']);
$this->assertContains("users.{$userId}.verification.{$verificationId}.create", $response['data']['events']);