Skip to content

Commit 25e84dc

Browse files
committed
Fix test namespaces
1 parent c8eb561 commit 25e84dc

File tree

10 files changed

+22
-7
lines changed

10 files changed

+22
-7
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
},
5252
"autoload-dev": {
5353
"psr-4": {
54-
"SellingPartnerApi\\Tests\\": "test/"
54+
"SellingPartnerApi\\Tests\\": "tests/"
5555
}
5656
},
5757
"scripts": {

tests/AuthenticationTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
declare(strict_types=1);
44

5+
namespace SellingPartnerApi\Tests;
6+
57
use PHPUnit\Framework\TestCase;
68
use Saloon\Config;
79
use Saloon\Exceptions\Request\Statuses\UnauthorizedException;

tests/InMemoryTokenCacheTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
declare(strict_types=1);
44

5+
namespace SellingPartnerApi\Tests;
6+
57
use PHPUnit\Framework\TestCase;
68
use SellingPartnerApi\Authentication\AccessTokenAuthenticator;
79
use SellingPartnerApi\Authentication\InMemoryTokenCache;

tests/OAuthTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<?php
22

3+
declare(strict_types=1);
4+
5+
namespace SellingPartnerApi\Tests;
6+
37
use PHPUnit\Framework\TestCase;
48
use Saloon\Http\Faking\MockClient;
59
use Saloon\Http\Faking\MockResponse;

tests/Seller/FBAInboundV0/Requests/UpdateInboundShipmentTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22

3-
namespace Seller\FBAInboundV0\Requests;
3+
declare(strict_types=1);
4+
5+
namespace SellingPartnerApi\Tests\Seller\FBAInboundV0\Requests;
46

57
use DateTime;
68
use PHPUnit\Framework\TestCase;

tests/Seller/FBAInboundV20240320/Responses/ListDeliveryWindowOptionsTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
class ListDeliveryWindowOptionsTest extends TestCase
1111
{
12-
function testDeserializeDateTimeWithoutSeconds(): void
12+
public function testDeserializeDateTimeWithoutSeconds(): void
1313
{
1414
$now = new DateTime();
1515
$result = ListDeliveryWindowOptionsResponse::deserialize([
@@ -23,7 +23,7 @@ function testDeserializeDateTimeWithoutSeconds(): void
2323
'validUntil' => '2024-09-24T00:00Z',
2424
'deliveryWindowOptionId' => 'dwf5ab76c1-ed8a-4885-beb6-3a9992b6954e',
2525
'startDate' => $now->format('Y-m-d\TH:i\Z'),
26-
]
26+
],
2727
],
2828
]);
2929
$this->assertNotNull($result);
@@ -32,4 +32,4 @@ function testDeserializeDateTimeWithoutSeconds(): void
3232
// of the original datetime
3333
$this->assertEqualsWithDelta($now->getTimestamp(), $result->deliveryWindowOptions[0]->startDate->getTimestamp(), 60);
3434
}
35-
}
35+
}

tests/Seller/ReportsV20210630/Responses/ReportTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Seller\ReportsV20210630\Responses;
3+
namespace SellingPartnerApi\Tests\Seller\ReportsV20210630\Responses;
44

55
use DateTime;
66
use DateTimeInterface;

tests/Seller/ShippingV2/Requests/GetTrackingTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<?php
22

3+
declare(strict_types=1);
4+
5+
namespace SellingPartnerApi\Tests\Seller\ShippingV2\Requests;
6+
37
use PHPUnit\Framework\TestCase;
48
use Saloon\Config;
59
use Saloon\Http\Faking\MockClient;

tests/SerializationTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use SellingPartnerApi\Seller\OrdersV0\Dto\ConfirmShipmentRequest;
1414
use SellingPartnerApi\Seller\OrdersV0\Dto\PackageDetail;
1515
use SellingPartnerApi\Seller\OrdersV0\Requests\ConfirmShipment;
16-
use SellingPartnerApi\Seller\ProductFeesV0\Responses\GetMyFeesEstimateResponse;
1716
use SellingPartnerApi\Seller\ProductPricingV0\Dto\GetItemOffersBatchRequest;
1817
use SellingPartnerApi\Seller\ProductPricingV0\Dto\ItemOffersRequest;
1918
use SellingPartnerApi\Seller\ProductPricingV0\Requests\GetItemOffersBatch;

tests/TokenCacheTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
declare(strict_types=1);
44

5+
namespace SellingPartnerApi\Tests;
6+
57
use PHPUnit\Framework\TestCase;
68
use Saloon\Config;
79
use Saloon\Http\Faking\MockClient;

0 commit comments

Comments
 (0)