How to test the extension classes ?
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Re: How to test the extension classes ?
Hello.
I am getting an error while executing some test cases in which TestHelper class is used.
This error comes with aimeos extensions too.
The error is occurring due to the statement require_once('Bootstrap.php') in the TestHelper class in the extension but
this Bootstrap.php is only present in the aimeos-core package and not in any of the extensions (custom + ai-*).
As a reminder, i am testing extensions directly in the project instead of copying extensions to a cloned aimeos-core repo.
The test command that i am executing is below :-
I am getting an error while executing some test cases in which TestHelper class is used.
This error comes with aimeos extensions too.
Code: Select all
PHP Warning: Uncaught require_once(Bootstrap.php): failed to open stream: No such file or directory
this Bootstrap.php is only present in the aimeos-core package and not in any of the extensions (custom + ai-*).
As a reminder, i am testing extensions directly in the project instead of copying extensions to a cloned aimeos-core repo.
The test command that i am executing is below :-
Code: Select all
vendor/bin/phpunit --bootstrap=vendor/autoload.php -c ext/ext-custom/lib/custom/tests/phpunit.xml
Re: How to test the extension classes ?
That's strange because composer (used by including vendor/autoload.php) should know the \Aimeos\Bootstrap class located in vendor/aimeos/aimeos-core/
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star