-
Bug
-
Resolution: Duplicate
-
Blocker
-
None
-
3.1
-
MOODLE_31_STABLE
I was working on a tiny Scenario to cover MDL-53994 and I became surprised because the fatal error reported there was not being detected by behat and, instead the next step failed because, obviously, with the error being shown, it did not match.
To reproduce it:
1) edit blocks/feedback/block_feedback.php
2) comment the require_once() line #27
3) Run --name 'Site feedback deletion hides feedback block completely'
Expected behavior:
As far as that causes a Fatal error, behat should fail with that information
Current behavior:
The error is not detected and next step fails because, obviously there is not match
That's it, I think we should be detecting those errors. Without that, depending of the next steps, the problem can be completely undetected.
Ciao