From c2b88490806a5bd505d5d1511c849a38a4e3cc65 Mon Sep 17 00:00:00 2001 From: L3RAZ Date: Wed, 4 Dec 2024 14:42:05 +0200 Subject: [PATCH] Added namespace for tests --- tests/IsoCodeDispatcherTest.php | 9 ++++++--- tests/OrderStatesTranslationsTest.php | 3 +++ tests/PaymentCreateOrderTest.php | 3 +++ tests/PsxDataValidationTest.php | 3 +++ tests/WebHookValidationTest.php | 3 +++ 5 files changed, 18 insertions(+), 3 deletions(-) diff --git a/tests/IsoCodeDispatcherTest.php b/tests/IsoCodeDispatcherTest.php index 547dfd673..06c95fea4 100755 --- a/tests/IsoCodeDispatcherTest.php +++ b/tests/IsoCodeDispatcherTest.php @@ -17,10 +17,13 @@ * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ + +namespace Tests; + use PHPUnit\Framework\TestCase; use PrestaShop\Module\PrestashopCheckout\PaypalCountryCodeMatrice; -class PaypalCountryCodeMatriceTest extends TestCase +class IsoCodeDispatcherTest extends TestCase { /** * @dataProvider isoCodeDataProviderPaypal @@ -58,7 +61,7 @@ public function isoCodeDataProviderPaypal() } /** - * @dataProvider isoCodeDataProviderPrestashopl + * @dataProvider isoCodeDataProviderPrestashop */ public function testgetPrestashopIsoCode($resultExpect, $dataToValidate) { @@ -68,7 +71,7 @@ public function testgetPrestashopIsoCode($resultExpect, $dataToValidate) ); } - public function isoCodeDataProviderPrestashopl() + public function isoCodeDataProviderPrestashop() { return [ [ diff --git a/tests/OrderStatesTranslationsTest.php b/tests/OrderStatesTranslationsTest.php index de6756a84..ad58f5722 100755 --- a/tests/OrderStatesTranslationsTest.php +++ b/tests/OrderStatesTranslationsTest.php @@ -17,6 +17,9 @@ * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ + +namespace Tests; + use PHPUnit\Framework\TestCase; use PrestaShop\Module\PrestashopCheckout\Translations\OrderStatesTranslations; diff --git a/tests/PaymentCreateOrderTest.php b/tests/PaymentCreateOrderTest.php index b9004dff4..006bc3ff8 100755 --- a/tests/PaymentCreateOrderTest.php +++ b/tests/PaymentCreateOrderTest.php @@ -17,6 +17,9 @@ * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ + +namespace Tests; + use GuzzleHttp\Client; use GuzzleHttp\Message\Response; use GuzzleHttp\Stream\Stream; diff --git a/tests/PsxDataValidationTest.php b/tests/PsxDataValidationTest.php index 0cac95dc7..f85638254 100755 --- a/tests/PsxDataValidationTest.php +++ b/tests/PsxDataValidationTest.php @@ -17,6 +17,9 @@ * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ + +namespace Tests; + use PHPUnit\Framework\TestCase; use PrestaShop\Module\PrestashopCheckout\PsxData\PsxDataValidation; diff --git a/tests/WebHookValidationTest.php b/tests/WebHookValidationTest.php index 9f2051f23..70579efa1 100755 --- a/tests/WebHookValidationTest.php +++ b/tests/WebHookValidationTest.php @@ -17,6 +17,9 @@ * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ + +namespace Tests; + use PHPUnit\Framework\TestCase; use PrestaShop\Module\PrestashopCheckout\Exception\PsCheckoutException; use PrestaShop\Module\PrestashopCheckout\WebHookValidation;