Skip to content

Commit 6795ca1

Browse files
committed
VOSTDM-3174 MDL 4.3 - Valider nos plugins - Partie 2 - Concordance
1 parent ce10a12 commit 6795ca1

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* @param array $options additional options affecting the file serving
3939
* @return void
4040
*/
41-
function qtype_tcsjudgment_pluginfile($course, $cm, $context, $filearea, $args, $forcedownload, array $options=array()): void {
41+
function qtype_tcsjudgment_pluginfile($course, $cm, $context, $filearea, $args, $forcedownload, array $options=[]): void {
4242
global $CFG;
4343
require_once($CFG->libdir . '/questionlib.php');
4444
question_pluginfile($course, $context, 'qtype_tcsjudgment', $filearea, $args, $forcedownload, $options);

tests/behat/preview.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Feature: Preview a Concordance of judgment question
2929
Given I choose "Preview" action for "TCS-002" in the question bank
3030
And I expand all fieldsets
3131
When I set the field "How questions behave" to "Immediate feedback"
32-
And I press "Start again with these options"
32+
And I press "Save preview options and start again"
3333
Then I should see "Situation"
3434
And I should see "Here is the question"
3535
And I should see "Hypothesis label"

tests/helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class qtype_tcsjudgment_test_helper extends qtype_tcs_test_helper {
5555
* this question type.
5656
*/
5757
public function get_test_questions() {
58-
return array('judgment');
58+
return ['judgment'];
5959
}
6060

6161
/**

version.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
defined('MOODLE_INTERNAL') || die();
2727

2828
$plugin->component = 'qtype_tcsjudgment';
29-
$plugin->version = 2023032700;
30-
$plugin->requires = 2021051704;
31-
$plugin->release = '1.0.2 (Build 2023032700)';
29+
$plugin->version = 2024012500;
30+
$plugin->requires = 2023100400;
31+
$plugin->release = '1.0.3 (Build 2024012500)';
3232

33-
$plugin->dependencies = array(
34-
'qtype_tcs' => 2021110900
35-
);
33+
$plugin->dependencies = [
34+
'qtype_tcs' => 2024012500,
35+
];
3636

3737
$plugin->maturity = MATURITY_STABLE;

0 commit comments

Comments
 (0)