1
0
Fork 0
mirror of synced 2024-06-17 10:14:50 +12:00

fix tests

This commit is contained in:
Torsten Dittmann 2021-03-24 17:25:07 +01:00
parent 85d13bf801
commit ae8061b5ca

View file

@ -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']);