Jetbrains PhpStorm¶
This howto relies on an installed OXID eShop on a running OXID eShop VM. If you are using a different environment, this documentation might change slightly.
Executing tests¶
In order to execute OXID eShop tests (or any tests written with the Testing Library) you have to configure PhpStorm to use the same PHPUnit settings as e.g. the command runtests of the testing library.
First make sure that you configured the CLI PHP interpreter from the VM (
).Then visit
PHPUnit by Remote Interpreter
. You get a new configuration form. Choose the following
settings:
PhpUnit library
Choose
Use composer autoloader
and configurePath to script: /var/www/oxideshop/vendor/autoload.php
Important
Be sure to refresh the detection of the PhpUnit version with the refresh button every time the version changes. Otherwise PhpStorm might call PhpUnit with the wrong parameters.
Test runner
Default configuration file
:/var/www/oxideshop/vendor/oxid-esales/testing-library/phpunit.xml
Default bootstrap file
: Not configured