Affects Version/s: 2.1.1, 2.2
Fix Version/s: 2.1.2
Component/s: Unit tests
Run each of these scripts through the unit tests report page and make sure each completes successfully with and without the admin/generator.php script included.
I have done this and it makes no difference, I therefore conclude that the include is not needed and I can remove it without harm.
Affected Branches:MOODLE_21_STABLE, MOODLE_22_STABLE
Pull from Repository:
Pull Master Branch:
Pull Master Diff URL:
I have a little script that runs all of the simple tests in moodle from the command line.
There is an issue in a few of the simple tests where admin/generator.php is included (but not used). When admin/generator.php is included and the simple test is run from the command line the admin/generator.php script takes control and asks the user for input, then die()'s because it wasn't passed any params or args.
I have fixed this by removing the include of admin/generator.php from the following simple tests
To test that this fix hasn't broken anything I removed the include from the simple tests and made sure that the same number of tests where run and all of tests still passed.