This repository was archived by the owner on Feb 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public function successful_connections_have_the_app_attached()
46
46
$ this ->pusherServer ->onOpen ($ connection );
47
47
48
48
$ this ->assertInstanceOf (App::class, $ connection ->app );
49
- $ this ->assertSame (1234 , $ connection ->app ->id );
49
+ $ this ->assertSame (' 1234 ' , $ connection ->app ->id );
50
50
$ this ->assertSame ('TestKey ' , $ connection ->app ->key );
51
51
$ this ->assertSame ('TestSecret ' , $ connection ->app ->secret );
52
52
$ this ->assertSame ('Test App ' , $ connection ->app ->name );
Original file line number Diff line number Diff line change @@ -22,16 +22,20 @@ public function it_can_store_statistics()
22
22
23
23
$ this ->assertCount (1 , $ entries );
24
24
25
- $ this ->assertArraySubset ($ this ->payload (), $ entries ->first ()->attributesToArray ());
25
+ $ actual = $ entries ->first ()->attributesToArray ();
26
+ foreach ($ this ->payload () as $ key => $ value ) {
27
+ $ this ->assertArrayHasKey ($ key , $ actual );
28
+ $ this ->assertSame ($ value , $ actual [$ key ]);
29
+ }
26
30
}
27
31
28
32
protected function payload (): array
29
33
{
30
34
return [
31
35
'app_id ' => config ('websockets.apps.0.id ' ),
32
- 'peak_connection_count ' => 1 ,
33
- 'websocket_message_count ' => 2 ,
34
- 'api_message_count ' => 3 ,
36
+ 'peak_connection_count ' => ' 1 ' ,
37
+ 'websocket_message_count ' => ' 2 ' ,
38
+ 'api_message_count ' => ' 3 ' ,
35
39
];
36
40
}
37
41
}
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ protected function getEnvironmentSetUp($app)
46
46
$ app ['config ' ]->set ('websockets.apps ' , [
47
47
[
48
48
'name ' => 'Test App ' ,
49
- 'id ' => 1234 ,
49
+ 'id ' => ' 1234 ' ,
50
50
'key ' => 'TestKey ' ,
51
51
'secret ' => 'TestSecret ' ,
52
52
'host ' => 'localhost ' ,
You can’t perform that action at this time.
0 commit comments