Skip to content

Commit

Permalink
behat order
Browse files Browse the repository at this point in the history
  • Loading branch information
rdebleu committed Apr 9, 2024
1 parent 2a1859f commit 31f5684
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 21 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ jobs:
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi phplint

- name: phpcpd
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi phpcpd

- name: phpmd
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi phpmd
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ jobs:
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi phplint

- name: phpcpd
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi phpcpd

- name: phpmd
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi phpmd
Expand Down
8 changes: 4 additions & 4 deletions tests/behat/behat_repository_s3bucket.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ class behat_repository_s3bucket extends behat_base {
* @throws dml_exception
*/
public function i_enable_repository($repository) {
global $DB;
if (!$DB->record_exists('repository', ['type' => $repository])) {
$DB->insert_record('repository', (object) ['type' => $repository, 'visible' => 1]);
}
global $CFG;
require_once($CFG->dirroot . '/repository/lib.php');
$s3bucketplugin = new repository_type($repository, [], true);
$s3bucketplugin->create(true);
}
}
16 changes: 8 additions & 8 deletions tests/behat/s3bucket_global.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ Feature: S3 bucket global repositories should be seen by admins and teachers

Background:
Given the following "courses" exist:
| fullname | shortname | category |
| Course 1 | C1 | 0 |
| fullname | shortname |
| Course 1 | C1 |
And the following "users" exist:
| username | email | firstname | lastname |
| student | s@example.com | Student | 1 |
| teacher | t@example.com | Teacher | 1 |
| username |
| student |
| teacher |
And the following "course enrolments" exist:
| user | course | role |
| student | C1 | student |
| teacher | C1 | editingteacher |
| user | course | role |
| student | C1 | student |
| teacher | C1 | editingteacher |
And the following "activities" exist:
| activity | name | course | idnumber | section |
| url | UrlA | C1 | urlA | 1 |
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
$plugin->maturity = MATURITY_STABLE;
$plugin->dependencies = ['repository_s3' => ANY_VERSION, 'local_aws' => 2023042400];
$plugin->release = 'v4.2.3';
$plugin->supported = [402, 403];
$plugin->supported = [402, 404];
$plugin->version = 2024031000;

0 comments on commit 31f5684

Please sign in to comment.