open-lms-open-source / moodle-theme_snap

GNU General Public License v3.0
79 stars 75 forks source link

Unit tests failing on dashboard_appendices_test - Capability 'block/reports:viewown' not found #219

Open susyzan opened 2 years ago

susyzan commented 2 years ago

Hello,

We have just upgraded to MOODLE_310_STABLE and our build is failing on dashboard_appendices_test. Please note, as they are mentioned in shared.php, we don't use Joule or New Open reports.

This is the error we get on a local install:

Moodle 3.10.6 (Build: 20210729), 642b0cf1b2c9a12fa00c523dacd0149cbcdc2130 Php: 7.4.22, mysqli: 5.7.33, OS: Linux 5.10.16.3-microsoft-standard-WSL2 x86_64 PHPUnit 8.5.14 by Sebastian Bergmann and contributors.

coding_exception : Coding error detected, it must be fixed by a programmer: Capability 'block/reports:viewown' was not found! This has to be fixed in code. /var/www/html/lib/accesslib.php:1389 /var/www/html/theme/snap/tests/dashboard_appendices_test.php:47 /var/www/html/lib/phpunit/classes/advanced_testcase.php:80