From 7b690719bb4b17a0b06333f7e044520c8afdc9f8 Mon Sep 17 00:00:00 2001 From: kenjis Date: Sun, 3 Dec 2023 09:18:36 +0900 Subject: [PATCH] test: update assertion It seems the order of array items changed by the library upgrade. --- tests/Unit/Authentication/JWT/JWTManagerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Unit/Authentication/JWT/JWTManagerTest.php b/tests/Unit/Authentication/JWT/JWTManagerTest.php index 6acd82717..684281898 100644 --- a/tests/Unit/Authentication/JWT/JWTManagerTest.php +++ b/tests/Unit/Authentication/JWT/JWTManagerTest.php @@ -182,9 +182,9 @@ public function testIssueAddHeader(): void $this->assertIsString($token); $headers = $this->decodeJWT($token, 'header'); - $this->assertSame([ - 'extra_key' => 'extra_value', + $this->assertEqualsCanonicalizing([ 'typ' => 'JWT', + 'extra_key' => 'extra_value', 'alg' => 'HS256', ], $headers); }