MDL-69102 phpunit: Add test to cover ALL cohort criteria
commitecc8fc3974e7d1f34ce97a78e5659911f3629e00
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 8 Apr 2021 17:19:09 +0000 (8 19:19 +0200)
committerMarty <martygilbert@gmail.com>
Sat, 10 Apr 2021 16:39:45 +0000 (10 12:39 -0400)
tree9a87b4b53f938b071d81b832b2361de1dc7df618
parente4fabe4ae8d572ff961435acc078ed163ab56ab6
MDL-69102 phpunit: Add test to cover ALL cohort criteria

That way we can check that the expectations are
working ok for every database. Previously only the
ANY case was being tested.

Also, convert them to course badges and check, via
review_all_criteria() that the SQL structures returned
by award_criteria_cohort->get_completed_criteria_sql()
doesn't fail and return the expected counters.
badges/tests/badgeslib_test.php