MDL-83037 badges: ensure image is specified in Behat test generator.

This commit is contained in:
Paul Holden 2024-09-06 11:21:51 +01:00
parent 6a7b69a30a
commit 08127c83a7
No known key found for this signature in database
GPG Key ID: A81A96D6045F6164
2 changed files with 3 additions and 2 deletions

View File

@ -49,8 +49,8 @@ Feature: Manage badges
Scenario Outline: Filter managed badges Scenario Outline: Filter managed badges
Given the following "core_badges > Badges" exist: Given the following "core_badges > Badges" exist:
| name | status | version | | name | status | version | image |
| Badge #2 | 1 | 2.0 | | Badge #2 | 1 | 2.0 | badges/tests/behat/badge.png |
And I log in as "admin" And I log in as "admin"
When I navigate to "Badges > Manage badges" in site administration When I navigate to "Badges > Manage badges" in site administration
And I click on "Filters" "button" And I click on "Filters" "button"

View File

@ -37,6 +37,7 @@ class behat_core_badges_generator extends behat_generator_base {
'datagenerator' => 'badge', 'datagenerator' => 'badge',
'required' => [ 'required' => [
'name', 'name',
'image',
], ],
'switchids' => [ 'switchids' => [
'course' => 'courseid', 'course' => 'courseid',