diff --git a/composer.json b/composer.json index bbba66ae8..7220bbc35 100644 --- a/composer.json +++ b/composer.json @@ -38,6 +38,9 @@ "psr-4": { "SellingPartnerApi\\" : "lib/" } }, "autoload-dev": { - "psr-4": { "SellingPartnerApi\\Tests\\" : "tests/" } + "psr-4": { "SellingPartnerApi\\Tests\\" : "test/" } + }, + "scripts": { + "test": "vendor/bin/phpunit" } } diff --git a/lib/ApiException.php b/lib/ApiException.php index da26dc9eb..8e61cb47a 100644 --- a/lib/ApiException.php +++ b/lib/ApiException.php @@ -1,7 +1,7 @@ endpoint = $options["endpoint"]; $this->auth = new Authentication($options); - $this->setRequestSigner($options['requestSigner'] ?? $this->auth); + $this->setRequestSigner($options["requestSigner"] ?? $this->auth); } public function getRequestSigner(): RequestSignerContract diff --git a/lib/HeaderSelector.php b/lib/HeaderSelector.php index de1a56d85..8a7eda121 100644 --- a/lib/HeaderSelector.php +++ b/lib/HeaderSelector.php @@ -1,7 +1,7 @@ - tests + test - \ No newline at end of file + diff --git a/tests/AuthenticationTest.php b/test/AuthenticationTest.php similarity index 100% rename from tests/AuthenticationTest.php rename to test/AuthenticationTest.php diff --git a/tests/AuthorizationSignerTest.php b/test/AuthorizationSignerTest.php similarity index 100% rename from tests/AuthorizationSignerTest.php rename to test/AuthorizationSignerTest.php diff --git a/tests/RequestSignerTest.php b/test/RequestSignerTest.php similarity index 100% rename from tests/RequestSignerTest.php rename to test/RequestSignerTest.php