Skip to content

Commit

Permalink
Added namespace for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
L3RAZ committed Dec 4, 2024
1 parent 2130ecf commit c2b8849
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/IsoCodeDispatcherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -58,7 +61,7 @@ public function isoCodeDataProviderPaypal()
}

/**
* @dataProvider isoCodeDataProviderPrestashopl
* @dataProvider isoCodeDataProviderPrestashop
*/
public function testgetPrestashopIsoCode($resultExpect, $dataToValidate)
{
Expand All @@ -68,7 +71,7 @@ public function testgetPrestashopIsoCode($resultExpect, $dataToValidate)
);
}

public function isoCodeDataProviderPrestashopl()
public function isoCodeDataProviderPrestashop()
{
return [
[
Expand Down
3 changes: 3 additions & 0 deletions tests/OrderStatesTranslationsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
3 changes: 3 additions & 0 deletions tests/PaymentCreateOrderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions tests/PsxDataValidationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
3 changes: 3 additions & 0 deletions tests/WebHookValidationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c2b8849

Please sign in to comment.