From 25e84dcb427609fd05e863009880bda50a5b8b9e Mon Sep 17 00:00:00 2001 From: Jesse Evers Date: Tue, 6 Aug 2024 13:48:46 -0400 Subject: [PATCH] Fix test namespaces --- composer.json | 2 +- tests/AuthenticationTest.php | 2 ++ tests/InMemoryTokenCacheTest.php | 2 ++ tests/OAuthTest.php | 4 ++++ .../FBAInboundV0/Requests/UpdateInboundShipmentTest.php | 4 +++- .../Responses/ListDeliveryWindowOptionsTest.php | 6 +++--- tests/Seller/ReportsV20210630/Responses/ReportTest.php | 2 +- tests/Seller/ShippingV2/Requests/GetTrackingTest.php | 4 ++++ tests/SerializationTest.php | 1 - tests/TokenCacheTest.php | 2 ++ 10 files changed, 22 insertions(+), 7 deletions(-) diff --git a/composer.json b/composer.json index ba219bbe..d43ee55b 100644 --- a/composer.json +++ b/composer.json @@ -51,7 +51,7 @@ }, "autoload-dev": { "psr-4": { - "SellingPartnerApi\\Tests\\": "test/" + "SellingPartnerApi\\Tests\\": "tests/" } }, "scripts": { diff --git a/tests/AuthenticationTest.php b/tests/AuthenticationTest.php index e7269243..9acb32a3 100644 --- a/tests/AuthenticationTest.php +++ b/tests/AuthenticationTest.php @@ -2,6 +2,8 @@ declare(strict_types=1); +namespace SellingPartnerApi\Tests; + use PHPUnit\Framework\TestCase; use Saloon\Config; use Saloon\Exceptions\Request\Statuses\UnauthorizedException; diff --git a/tests/InMemoryTokenCacheTest.php b/tests/InMemoryTokenCacheTest.php index 3ef7494c..cafd1a47 100644 --- a/tests/InMemoryTokenCacheTest.php +++ b/tests/InMemoryTokenCacheTest.php @@ -2,6 +2,8 @@ declare(strict_types=1); +namespace SellingPartnerApi\Tests; + use PHPUnit\Framework\TestCase; use SellingPartnerApi\Authentication\AccessTokenAuthenticator; use SellingPartnerApi\Authentication\InMemoryTokenCache; diff --git a/tests/OAuthTest.php b/tests/OAuthTest.php index f76e4443..e382834b 100644 --- a/tests/OAuthTest.php +++ b/tests/OAuthTest.php @@ -1,5 +1,9 @@ '2024-09-24T00:00Z', 'deliveryWindowOptionId' => 'dwf5ab76c1-ed8a-4885-beb6-3a9992b6954e', 'startDate' => $now->format('Y-m-d\TH:i\Z'), - ] + ], ], ]); $this->assertNotNull($result); @@ -32,4 +32,4 @@ function testDeserializeDateTimeWithoutSeconds(): void // of the original datetime $this->assertEqualsWithDelta($now->getTimestamp(), $result->deliveryWindowOptions[0]->startDate->getTimestamp(), 60); } -} \ No newline at end of file +} diff --git a/tests/Seller/ReportsV20210630/Responses/ReportTest.php b/tests/Seller/ReportsV20210630/Responses/ReportTest.php index c17ed986..6b8f719b 100644 --- a/tests/Seller/ReportsV20210630/Responses/ReportTest.php +++ b/tests/Seller/ReportsV20210630/Responses/ReportTest.php @@ -1,6 +1,6 @@