Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

Update routes to use HTTPS. #135

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/ApiClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function test_getV1BatchTokenFromHeadersWrongLinkHeader() {
*/
public function test_getV1BatchTokenFromHeadersNoNextLinkHeader() {
$headers = [
'Link' => '<http://connect.squareup.com/v1/payments/?batch_token=TOKEN1>; rel="previous"; title="previous chapter"'
'Link' => '<https://connect.squareup.com/v1/payments/?batch_token=TOKEN1>; rel="previous"; title="previous chapter"'
];
$batch_token = \SquareConnect\ApiClient::getV1BatchTokenFromHeaders($headers);
$this->assertEquals(null, $batch_token);
Expand All @@ -75,7 +75,7 @@ public function test_getV1BatchTokenFromHeadersNoNextLinkHeader() {
*/
public function test_getV1BatchTokenFromHeadersNoBatchToken() {
$headers = [
'Link' => "<http://connect.squareup.com/v1/payments/?batch_Ttoken=TOKEN1>;rel='next'"
'Link' => "<https://connect.squareup.com/v1/payments/?batch_Ttoken=TOKEN1>;rel='next'"
];
$batch_token = \SquareConnect\ApiClient::getV1BatchTokenFromHeaders($headers);
$this->assertEquals(null, $batch_token);
Expand All @@ -87,7 +87,7 @@ public function test_getV1BatchTokenFromHeadersNoBatchToken() {
*/
public function test_getV1BatchTokenFromHeaders() {
$headers = [
'Link' => "<http://connect.squareup.com/v1/payments/?batch_token=TOKEN1>;rel='next'"
'Link' => "<https://connect.squareup.com/v1/payments/?batch_token=TOKEN1>;rel='next'"
];
$batch_token = \SquareConnect\ApiClient::getV1BatchTokenFromHeaders($headers);
$this->assertEquals('TOKEN1', $batch_token);
Expand Down