diff --git a/tests/Macros/TokenRedirectTest.php b/tests/Macros/TokenRedirectTest.php index d5fc3883..10ea282a 100644 --- a/tests/Macros/TokenRedirectTest.php +++ b/tests/Macros/TokenRedirectTest.php @@ -24,7 +24,7 @@ public function testTokenRedirect(): void $response = Redirector::tokenRedirect('home'); $location = $response->headers->get('location'); - $this->assertEquals( + $this->assertSame( 'http://localhost/authenticate/token?shop=example.myshopify.com&target=http%3A%2F%2Flocalhost', $location ); diff --git a/tests/Macros/TokenRouteTest.php b/tests/Macros/TokenRouteTest.php index ef9a05b4..983f7319 100644 --- a/tests/Macros/TokenRouteTest.php +++ b/tests/Macros/TokenRouteTest.php @@ -23,7 +23,7 @@ public function testTokenRoute(): void // Run the macro and get the link $result = UrlGenerator::tokenRoute('home'); - $this->assertEquals( + $this->assertSame( 'http://localhost/authenticate/token?shop=example.myshopify.com&target=http%3A%2F%2Flocalhost', $result ); diff --git a/tests/Objects/Transfers/ChargeTest.php b/tests/Objects/Transfers/ChargeTest.php index 6eaef43e..c2e94eb6 100644 --- a/tests/Objects/Transfers/ChargeTest.php +++ b/tests/Objects/Transfers/ChargeTest.php @@ -40,7 +40,7 @@ public function testSetThrowsAnError(): void public function testToArray(): void { - $this->assertEquals([ + $this->assertSame([ 'shopId' => null, 'planId' => null, 'chargeReference' => null, diff --git a/tests/Objects/Values/SessionTokenTest.php b/tests/Objects/Values/SessionTokenTest.php index c1a31171..5dafa28f 100644 --- a/tests/Objects/Values/SessionTokenTest.php +++ b/tests/Objects/Values/SessionTokenTest.php @@ -21,10 +21,10 @@ public function testShouldProcessForValidToken(): void $this->assertTrue(Str::contains($this->tokenDefaults['dest'], $st->getShopDomain()->toNative())); $this->assertInstanceOf(SessionIdValue::class, $st->getSessionId()); - $this->assertEquals($this->tokenDefaults['sid'], $st->getSessionId()->toNative()); + $this->assertSame($this->tokenDefaults['sid'], $st->getSessionId()->toNative()); $this->assertInstanceOf(Carbon::class, $st->getExpiration()); - $this->assertEquals($this->tokenDefaults['exp'], $st->getExpiration()->unix()); + $this->assertSame($this->tokenDefaults['exp'], $st->getExpiration()->unix()); } public function testShouldThrowExceptionForMalformedToken(): void diff --git a/tests/UtilTest.php b/tests/UtilTest.php index 78063f1b..4a91e398 100644 --- a/tests/UtilTest.php +++ b/tests/UtilTest.php @@ -79,7 +79,7 @@ public function testGetShopifyConfig(): void $secret = Util::getShopifyConfig('api_secret'); $grantMode = Util::getShopifyConfig('api_grant_mode'); - $this->assertEquals('hello world', $secret); - $this->assertEquals('OFFLINE', $grantMode); + $this->assertSame('hello world', $secret); + $this->assertSame('OFFLINE', $grantMode); } }