adyen-magento2 icon indicating copy to clipboard operation
adyen-magento2 copied to clipboard

Tests error

Open Nuranto opened this issue 1 year ago • 2 comments

Describe the bug

When launching tests : PHP Fatal error: Uncaught Error: Class "Adyen\Payment\Tests\Unit\AbstractAdyenTestCase" not found in /var/www/html/vendor/adyen/module-payment/Test/Unit/Helper/AddressTest.php:20

To Reproduce

php -dmemory_limit=-1 vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist

Expected behavior

No errors.

Additional informations

All tests have a namespace starting with Adyen\Payment\Tests, but are in folder Test without s

Magento version 2.4.5

Plugin version 8.6.0

Nuranto avatar Sep 29 '22 09:09 Nuranto

Hi @Nuranto,

Thanks for opening this issue. For further information, could you try to run the tests using the same command that is being used in the RUN Phpunit step, in this github action?

Thanks, Jean Adyen

Morerice avatar Oct 03 '22 15:10 Morerice

Hi @Morerice

Testing the extension individually surely works with those parameters, since your CI passes. It's running phpunit for the whole magento project that doesn't work.

Nuranto avatar Oct 03 '22 16:10 Nuranto