Capabilities not there when initialising PHPUnit

Re: Capabilities not there when initialising PHPUnit

by Renaat Debleu -
Number of replies: 0
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers
Hi Matthias,

You can compare Initializing PHPUnit tests with initializing a Moodle site the very first time. When you install a program, there is only one user: the admin who installs the program, and (most) capabilities are not yet defined nor configured. So you cannot use your capabilities in your install.php file, because they will only be available after this script and access.php have been run.

R