Upon installation of the plugin with tests and installing the dependencies ready for plugin testing I encountered an error relating to an undefined constant.
To reproduce
Steps to reproduce the behaviour:
Download the generated plugin in the attachments or use the online generator with the following settings:
magiclogin (1).zip
Move into the directory on the Command line that the plugin is installed in
Run php vendor/bin/codecept
See the error attached:
Expected behaviour
Codecept command should run with no errors in the output.
Screenshots
Attached as various steps above.
To Fix
In order to fix this according to the craft documentation you can add the following into the _bootstrap.php file:
define('CRAFT_TESTS_PATH', __DIR__);
I'm happy to do this and submit a PR but wanted to log this issue to check it wasn't as designed.
Describe the bug
Upon installation of the plugin with tests and installing the dependencies ready for plugin testing I encountered an error relating to an undefined constant.
To reproduce
Steps to reproduce the behaviour:
php vendor/bin/codecept
Expected behaviour
Codecept command should run with no errors in the output.
Screenshots
Attached as various steps above.
To Fix
In order to fix this according to the craft documentation you can add the following into the
_bootstrap.php
file:I'm happy to do this and submit a PR but wanted to log this issue to check it wasn't as designed.
Versions