Skip to content

Commit

Permalink
updated stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
seba-aln committed Oct 23, 2024
1 parent 7be693f commit d53770b
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions tests/integrational/FetchMessagesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ public function testFetchWithDefaults()
->stubFor("/v3/history/sub-key/demo/channel/TheMessageHistoryChannelHD")
->withQuery([
"uuid" => $this->pubnub->getConfiguration()->getUserId(),
"pnsdk" => $this->encodedSdkName
"pnsdk" => $this->encodedSdkName,
"include_meta" => "false",
"include_uuid" => "false",
"include_message_type" => "true",
"include_custom_message_type" => "true",
])
->setResponseBody('{"status": 200, "error": false, "error_message": "", "channels":
{"TheMessageHistoryChannelHD":[
Expand Down Expand Up @@ -62,7 +66,11 @@ public function testFetchWithCount()
->withQuery([
"max" => "5",
"uuid" => $this->pubnub->getConfiguration()->getUserId(),
"pnsdk" => $this->encodedSdkName
"pnsdk" => $this->encodedSdkName,
"include_meta" => "false",
"include_uuid" => "false",
"include_message_type" => "true",
"include_custom_message_type" => "true",
])
->setResponseBody('{"status": 200, "error": false, "error_message": "", "channels":
{"TheMessageHistoryChannelHD":[
Expand Down Expand Up @@ -92,7 +100,11 @@ public function testFetchWithStartEnd()
"start" => "17165627042258346",
"end" => "17165627042258546",
"uuid" => $this->pubnub->getConfiguration()->getUserId(),
"pnsdk" => $this->encodedSdkName
"pnsdk" => $this->encodedSdkName,
"include_meta" => "false",
"include_uuid" => "false",
"include_message_type" => "true",
"include_custom_message_type" => "true",
])
->setResponseBody('{"status": 200, "error": false, "error_message": "", "channels":
{"TheMessageHistoryChannelHD":[
Expand Down Expand Up @@ -120,7 +132,11 @@ public function testFetchEncrypted()
->stubFor("/v3/history/sub-key/demo/channel/TheMessageHistoryChannelHD-ENCRYPTED")
->withQuery([
"uuid" => $this->pubnub->getConfiguration()->getUserId(),
"pnsdk" => $this->encodedSdkName
"pnsdk" => $this->encodedSdkName,
"include_meta" => "false",
"include_uuid" => "false",
"include_message_type" => "true",
"include_custom_message_type" => "true",
])

->setResponseBody('{"status": 200, "error": false, "error_message": "", "channels": {
Expand Down

0 comments on commit d53770b

Please sign in to comment.