Skip to content

Commit 0927cf0

Browse files
authored
Fixed env vars name to match parameter names described in documentation (#216)
1 parent 68ad463 commit 0927cf0

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.env.dist

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
SP_SELLER_REFRESH_TOKEN="changeme"
2-
SP_ACCESS_KEY="changeme"
3-
SP_SECRET_KEY="changeme"
4-
SP_LWA_CLIENT_ID="changeme"
5-
SP_LWA_CLIENT_SECRET="changeme"
1+
LWA_CLIENT_ID="changeme"
2+
LWA_CLIENT_SECRET="changeme"
3+
AWS_ACCESS_KEY="changeme"
4+
AWS_SECRET_KEY="changeme"
5+
SELLER_REFRESH_TOKEN="changeme"

tests/AmazonPHP/SellingPartner/Tests/Functional/SandboxTestCase.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ abstract class SandboxTestCase extends TestCase
1919

2020
protected function setUp() : void
2121
{
22-
if (!\getenv('SP_ACCESS_KEY')) {
22+
if (!\getenv('AWS_ACCESS_KEY')) {
2323
$this->markTestSkipped(".env file doesn't exists or env vars are not populated.");
2424
}
2525

2626
$configuration = Configuration::forIAMUser(
27-
\getenv('SP_LWA_CLIENT_ID'),
28-
\getenv('SP_LWA_CLIENT_SECRET'),
29-
\getenv('SP_ACCESS_KEY'),
30-
\getenv('SP_SECRET_KEY'),
27+
\getenv('LWA_CLIENT_ID'),
28+
\getenv('LWA_CLIENT_SECRET'),
29+
\getenv('AWS_ACCESS_KEY'),
30+
\getenv('AWS_SECRET_KEY'),
3131
);
3232

3333
$configuration->setSandbox();
@@ -40,7 +40,7 @@ protected function setUp() : void
4040
new TestLogger()
4141
);
4242

43-
$this->sellerRefreshToken = \getenv('SP_SELLER_REFRESH_TOKEN');
43+
$this->sellerRefreshToken = \getenv('SELLER_REFRESH_TOKEN');
4444
}
4545

4646
protected function tearDown() : void

0 commit comments

Comments
 (0)