Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit 7b1643e

Browse files
committed
docs(README): update required scopes for integration tests
1 parent d8e88c6 commit 7b1643e

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,18 @@ Now you can enable at Preferences > Editor > Inspections > PHP the "PHP code sni
217217

218218
### Running integration tests
219219

220-
For running the integration tests you need an empty commercetools project and have to create an API client using the commercetools Admin Center with the scopes manage_project, view_orders and view_products.
220+
For running the integration tests you need an empty commercetools project and have to create an API client using the commercetools Merchant Center with the scopes:
221+
```
222+
manage_project
223+
view_orders
224+
view_products
225+
manage_my_shopping_lists
226+
manage_my_orders
227+
manage_my_payments
228+
manage_my_profile
229+
manage_api_clients
230+
create_anonymous_token
231+
```
221232

222233
#### Local environment
223234

tests/integration/ApiClient/ApiClientTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public function testApiClient()
2929
$response = $request->executeWithClient($this->getClient(self::API_CLIENTS_SCOPE));
3030
$result = $request->mapResponse($response);
3131

32+
$this->assertNotNull($result);
3233
$this->assertNotNull($result->getId());
3334
$getByIdRequest = ApiClientByIdGetRequest::ofId($result->getId());
3435
$getResponse = $getByIdRequest->executeWithClient($this->getClient(self::API_CLIENTS_SCOPE));

0 commit comments

Comments
 (0)