I'm trying to create and run PHP Unit tests as recommended in the documentation here: https://docs.moodle.org/dev/PHPUnit#PHPUnit_support_in_IDEs and here: https://docs.moodle.org/dev/Writing_PHPUnit_tests.
In the first link, we are told that in order for these tests to work, we need to add these lines of code to our config.php file:
$CFG->phpunit_prefix = 'phpu_';
$CFG->phpunit_dataroot = '/home/example/phpu_moodledata';
My confusion arises from what the second one actually means, because when I set it to be '/Applications/MAMP/data/moodle40' (which is the specific path to my config.php file), I receive an error telling me that:
$CFG->dataroot and $CFG->phpunit_dataroot must not be identical, can not run tests!
I am not sure what the difference between the paths should be. Any help would be highly appreciated.