From ae8061b5ca25def065f92f74e627e28f7473e3ea Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Wed, 24 Mar 2021 17:25:07 +0100 Subject: [PATCH] fix tests --- tests/e2e/Services/Realtime/RealtimeBase.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/e2e/Services/Realtime/RealtimeBase.php b/tests/e2e/Services/Realtime/RealtimeBase.php index b9942dd8d..fece44b18 100644 --- a/tests/e2e/Services/Realtime/RealtimeBase.php +++ b/tests/e2e/Services/Realtime/RealtimeBase.php @@ -667,6 +667,16 @@ trait RealtimeBase $response = json_decode($client->receive(), true); + $this->assertArrayHasKey('timestamp', $response); + $this->assertCount(3, $response['channels']); + $this->assertContains('executions', $response['channels']); + $this->assertContains('executions.' . $execution['body']['$id'], $response['channels']); + $this->assertContains('functions.' . $execution['body']['functionId'], $response['channels']); + $this->assertEquals('functions.executions.create', $response['event']); + $this->assertNotEmpty($response['payload']); + + $response = json_decode($client->receive(), true); + $this->assertArrayHasKey('timestamp', $response); $this->assertCount(3, $response['channels']); $this->assertContains('executions', $response['channels']);