Skip to content

Commit b5256b0

Browse files
authored
Merge pull request #142 from criteo/fix-php-sdk-test
✅ Fix SDK test by updating content of 401 response for GET /me
2 parents 973957e + de2cfa2 commit b5256b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

generator/php/resources/templates/custom/GatewayApiTest.php.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ class GatewayApiTest extends TestCase
9898
9999
// Assert
100100
$this->assertEquals(401, $exception->getCode());
101-
$this->assertEquals('authentication', $data->getErrors()[0]->getType());
102-
$this->assertEquals('authentication-required', $data->getErrors()[0]->getCode());
101+
$this->assertEquals('authorization', $data->getErrors()[0]->getType());
102+
$this->assertEquals('authorization-token-invalid', $data->getErrors()[0]->getCode());
103103
}
104104
);
105105
}

0 commit comments

Comments
 (0)