mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-83037 badges: ensure image is specified in Behat test generator.
This commit is contained in:
parent
6a7b69a30a
commit
08127c83a7
@ -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"
|
||||||
|
@ -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',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user