Skip to content

Commit

Permalink
MDL-66120 block_community: Remove community block and related caps
Browse files Browse the repository at this point in the history
With the sunsetting of moodle.net, the community block will no longer
be functional, so removing the block and related caps
  • Loading branch information
peterRd committed Sep 3, 2019
1 parent 310d690 commit 1d6f041
Show file tree
Hide file tree
Showing 24 changed files with 63 additions and 2,565 deletions.
4 changes: 2 additions & 2 deletions admin/tool/behat/tests/behat/edit_permissions.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ Feature: Edit capabilities
And I set the following system permissions of "Teacher" role:
| capability | permission |
| block/mnet_hosts:myaddinstance | Allow |
| moodle/community:add | Inherit |
| moodle/site:messageanyuser | Inherit |
| moodle/grade:managesharedforms | Prevent |
| moodle/course:request | Prohibit |
When I follow "Edit Teacher role"
Then "block/mnet_hosts:myaddinstance" capability has "Allow" permission
And "moodle/community:add" capability has "Not set" permission
And "moodle/site:messageanyuser" capability has "Not set" permission
And "moodle/grade:managesharedforms" capability has "Prevent" permission
And "moodle/course:request" capability has "Prohibit" permission

Expand Down
8 changes: 4 additions & 4 deletions backup/util/ui/tests/behat/restore_moodle2_courses.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ Feature: Restore Moodle 2 course backups
And I add a "Forum" to section "1" and I fill the form with:
| Forum name | Test forum name |
| Description | Test forum description |
And I add the "Community finder" block
And I add the "Activities" block

@javascript
Scenario: Restore a course in another existing course
When I backup "Course 1" course using this options:
| Confirmation | Filename | test_backup.mbz |
And I restore "test_backup.mbz" backup into "Course 2" course using this options:
Then I should see "Course 2"
And I should see "Community finder" in the "Community finder" "block"
And I should see "Activities" in the "Activities" "block"
And I should see "Test forum name"

@javascript
Expand All @@ -38,7 +38,7 @@ Feature: Restore Moodle 2 course backups
And I restore "test_backup.mbz" backup into a new course using this options:
| Schema | Course name | Course 1 restored in a new course |
Then I should see "Course 1 restored in a new course"
And I should see "Community finder" in the "Community finder" "block"
And I should see "Activities" in the "Activities" "block"
And I should see "Test forum name"
And I should see "Topic 15"
And I should not see "Topic 16"
Expand Down Expand Up @@ -72,7 +72,7 @@ Feature: Restore Moodle 2 course backups
Then I should see "Course 1"
And I should not see "Section 3"
And I should not see "Test forum post backup name"
And I should see "Community finder" in the "Community finder" "block"
And I should see "Activities" in the "Activities" "block"
And I should see "Test forum name"

@javascript
Expand Down
104 changes: 0 additions & 104 deletions blocks/community/block_community.php

This file was deleted.

220 changes: 0 additions & 220 deletions blocks/community/classes/privacy/provider.php

This file was deleted.

Loading

0 comments on commit 1d6f041

Please sign in to comment.