Skip to content

Commit

Permalink
Add version header to various HTTP request mocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterwilsoncc committed Mar 29, 2023
1 parent d6c8540 commit 2484a94
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/php/SubscriptionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ public function test_delete_subscribed_post() {
[
'timeout' => 5,
'blocking' => \Distributor\Utils\is_dt_debug(),
'headers' => [
'X-Distributor-Version' => DT_VERSION,
],
'body' => [
'post_id' => $remote_post_id,
'signature' => $signature,
Expand Down Expand Up @@ -375,6 +378,7 @@ public function test_send_notifications_no_remote_post() {
] ),
'headers' => [
'Content-Type' => 'application/json',
'X-Distributor-Version' => DT_VERSION,
],
],
],
Expand Down Expand Up @@ -566,6 +570,7 @@ public function test_send_notifications_remote_post_exists() {
] ),
'headers' => [
'Content-Type' => 'application/json',
'X-Distributor-Version' => DT_VERSION,
]
],
],
Expand Down Expand Up @@ -761,6 +766,9 @@ public function test_create_remote_subscription() {
[
'timeout' => 5,
'blocking' => \Distributor\Utils\is_dt_debug(),
'headers' => [
'X-Distributor-Version' => DT_VERSION,
],
'body' => [
'post_id' => $remote_post_id,
'remote_post_id' => $post_id,
Expand Down

0 comments on commit 2484a94

Please sign in to comment.