moodle-local_moodlecheck icon indicating copy to clipboard operation
moodle-local_moodlecheck copied to clipboard

Invalid phpdocs tag @BeforeScenario and @AfterScenario used

Open laurentdavid opened this issue 1 year ago • 1 comments

I have the following Behat step that are using the @BeforeScenario and @AfterScenario tags in this file: https://github.com/moodle/moodle/blob/master/mod/bigbluebuttonbn/tests/behat/behat_mod_bigbluebuttonbn.php

Those two tags are necessary to add new callback to behat before and after the scenario is run. They are rarely used but they are really useful in some case. Possible to disable the warning from Moodle code check (phpdoc) ?

laurentdavid avatar Sep 04 '23 15:09 laurentdavid

Good one, @laurentdavid,

we'll try to add those tags as accepted, makes sense.

In the mean time, if you feel yourself interested... you can quick look for 'Given' (single quotes included) and it will show you how a new tag can be added for behat (3 occurrences).

Ciao :-)

stronk7 avatar Sep 08 '23 07:09 stronk7