MDL-46464 supplies missing method (and PHPUnit test) for grading workflow