@@ -844,16 +844,26 @@ public function testSearchEventsWithAllParams()
844
844
'min_suspect_score ' => '0.5 ' ,
845
845
'ip_blocklist ' => 'true ' ,
846
846
'datacenter ' => 'true ' ,
847
+ 'developer_tools ' => 'true ' ,
848
+ 'location_spoofing ' => 'true ' ,
849
+ 'mitm_attack ' => 'true ' ,
850
+ 'proxy ' => 'true ' ,
851
+ 'sdk_version ' => 'testSdkVersion ' ,
852
+ 'sdk_platform ' => 'testSdkPlatform ' ,
847
853
];
848
854
849
855
$ extraKeys = ['ii ' , 'visitor_id ' ];
850
856
851
- $ this ->assertCount (count ($ expected ) + count ($ extraKeys ), $ queryArray );
857
+ // Plus 1 for environment query
858
+ $ this ->assertCount (count ($ expected ) + count ($ extraKeys ) + 1 , $ queryArray );
852
859
foreach ($ expected as $ query => $ value ) {
853
860
$ this ->assertArrayHasKey ($ query , $ queryArray , "Missing query parameter: $ query " );
854
861
$ this ->assertEquals ($ value , $ queryArray [$ query ]);
855
862
}
856
863
864
+ $ envs = $ queryArray ['environment ' ];
865
+ $ this ->assertEquals (['env1 ' , 'env2 ' ], $ envs );
866
+
857
867
return $ this ->returnMockResponse ('get_event_search_200.json ' );
858
868
});
859
869
@@ -884,6 +894,13 @@ public function testSearchEventsWithAllParams()
884
894
min_suspect_score: 0.5 ,
885
895
ip_blocklist: true ,
886
896
datacenter: true ,
897
+ developer_tools: true ,
898
+ location_spoofing: true ,
899
+ mitm_attack: true ,
900
+ proxy: true ,
901
+ sdk_version: 'testSdkVersion ' ,
902
+ sdk_platform: 'testSdkPlatform ' ,
903
+ environment: ['env1 ' , 'env2 ' ]
887
904
);
888
905
889
906
$ this ->assertCount (1 , $ events ->getEvents ());
0 commit comments