From 08127c83a70fc8af90f0ba70d7f2534b17475429 Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Fri, 6 Sep 2024 11:21:51 +0100 Subject: [PATCH] MDL-83037 badges: ensure image is specified in Behat test generator. --- badges/tests/behat/manage_badges.feature | 4 ++-- badges/tests/generator/behat_core_badges_generator.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/badges/tests/behat/manage_badges.feature b/badges/tests/behat/manage_badges.feature index 03adba06dda..1dc56ac44d9 100644 --- a/badges/tests/behat/manage_badges.feature +++ b/badges/tests/behat/manage_badges.feature @@ -49,8 +49,8 @@ Feature: Manage badges Scenario Outline: Filter managed badges Given the following "core_badges > Badges" exist: - | name | status | version | - | Badge #2 | 1 | 2.0 | + | name | status | version | image | + | Badge #2 | 1 | 2.0 | badges/tests/behat/badge.png | And I log in as "admin" When I navigate to "Badges > Manage badges" in site administration And I click on "Filters" "button" diff --git a/badges/tests/generator/behat_core_badges_generator.php b/badges/tests/generator/behat_core_badges_generator.php index eeb13fb3e56..349c9f4ef6a 100644 --- a/badges/tests/generator/behat_core_badges_generator.php +++ b/badges/tests/generator/behat_core_badges_generator.php @@ -37,6 +37,7 @@ class behat_core_badges_generator extends behat_generator_base { 'datagenerator' => 'badge', 'required' => [ 'name', + 'image', ], 'switchids' => [ 'course' => 'courseid',