Skip to content

Commit

Permalink
MDL-49983 navigation: Remove 'my' from user context navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
John Okely committed May 4, 2015
1 parent 44e2802 commit 4887d15
Show file tree
Hide file tree
Showing 100 changed files with 307 additions and 287 deletions.
4 changes: 2 additions & 2 deletions admin/settings/appearance.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
'customusermenuitems',
new lang_string('customusermenuitems', 'admin'),
new lang_string('configcustomusermenuitems', 'admin'),
'mygrades,grades|/grade/report/mygrades.php|grades
'grades,grades|/grade/report/mygrades.php|grades
messages,message|/message/index.php|message
mypreferences,moodle|/user/preferences.php|preferences',
preferences,moodle|/user/preferences.php|preferences',
PARAM_TEXT,
'50',
'10'
Expand Down
6 changes: 3 additions & 3 deletions admin/tool/behat/tests/behat/data_generators.feature
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ Feature: Set up contextual data for tests
When I log in as "admin"
And I am on site homepage
And I follow "Course 1"
And I follow "Grades"
And I navigate to "Grades" node in "Course administration"
And I expand "Setup" node
And I follow "Categories and items"
Then I should see "Test Grade Item 1"
Expand Down Expand Up @@ -380,7 +380,7 @@ Feature: Set up contextual data for tests
When I log in as "admin"
And I am on site homepage
And I follow "Course 1"
And I follow "Grades"
And I navigate to "Grades" node in "Course administration"
And I follow "Scales"
Then I should see "Test Scale 1"
And I should see "Disappointing, Good, Very good, Excellent"
Expand Down Expand Up @@ -432,7 +432,7 @@ Feature: Set up contextual data for tests
When I log in as "admin"
And I am on site homepage
And I follow "Course 1"
And I follow "Grades"
And I navigate to "Grades" node in "Course administration"
And I expand "Setup" node
And I follow "Categories and items"
Then I should see "Test Outcome Grade Item 1"
Expand Down
2 changes: 1 addition & 1 deletion admin/tool/behat/tests/behat/manipulate_forms.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Feature: Forms manipulation
@javascript
Scenario: Basic forms manipulation
Given I log in as "admin"
And I follow "My preferences" in the user menu
And I follow "Preferences" in the user menu
And I follow "Edit profile"
When I set the field "First name" to "Field value"
And I set the field "Select a country" to "Japan"
Expand Down
2 changes: 1 addition & 1 deletion admin/tool/behat/tests/behat/nasty_strings.feature
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Feature: Transform steps arguments
| fullname | shortname | category |
| Course 1 | C1 | 0 |
And I log in as "admin"
And I follow "My preferences" in the user menu
And I follow "Preferences" in the user menu
And I follow "Edit profile"

@javascript
Expand Down
26 changes: 13 additions & 13 deletions admin/tool/monitor/tests/behat/subscription.feature
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Feature: tool_monitor_subscriptions

Scenario: Subscribe to a rule on course level
Given I log in as "teacher1"
And I follow "My preferences" in the user menu
And I follow "Preferences" in the user menu
And I follow "Event monitoring"
And I set the field "Select a course" to "Course 1"
When I follow "Subscribe to rule \"New rule course level\""
Expand All @@ -64,7 +64,7 @@ Feature: tool_monitor_subscriptions

Scenario: Delete a subscription on course level
Given I log in as "teacher1"
And I follow "My preferences" in the user menu
And I follow "Preferences" in the user menu
And I follow "Event monitoring"
And I set the field "Select a course" to "Course 1"
And I follow "Subscribe to rule \"New rule course level\""
Expand All @@ -77,7 +77,7 @@ Feature: tool_monitor_subscriptions

Scenario: Subscribe to a rule on site level
Given I log in as "admin"
And I follow "My preferences" in the user menu
And I follow "Preferences" in the user menu
And I follow "Event monitoring"
And I set the field "Select a course" to "Acceptance test site"
When I follow "Subscribe to rule \"New rule site level\""
Expand All @@ -86,7 +86,7 @@ Feature: tool_monitor_subscriptions

Scenario: Delete a subscription on site level
Given I log in as "admin"
And I follow "My preferences" in the user menu
And I follow "Preferences" in the user menu
And I follow "Event monitoring"
And I set the field "Select a course" to "Acceptance test site"
And I follow "Subscribe to rule \"New rule site level\""
Expand All @@ -100,11 +100,11 @@ Feature: tool_monitor_subscriptions

Scenario: Receiving notification on site level
Given I log in as "admin"
And I follow "My preferences" in the user menu
And I follow "Preferences" in the user menu
And I follow "Messaging"
And I click on "input[name^=tool_monitor_notification_loggedin]" "css_element"
And I press "Save changes"
And I follow "My preferences" in the user menu
And I follow "Preferences" in the user menu
And I follow "Event monitoring"
And I set the field "Select a course" to "Acceptance test site"
And I follow "Subscribe to rule \"New rule site level\""
Expand All @@ -119,11 +119,11 @@ Feature: tool_monitor_subscriptions

Scenario: Receiving notification on course level
Given I log in as "teacher1"
And I follow "My preferences" in the user menu
And I follow "Preferences" in the user menu
And I follow "Messaging"
And I click on "input[name^=tool_monitor_notification_loggedin]" "css_element"
And I press "Save changes"
And I follow "My preferences" in the user menu
And I follow "Preferences" in the user menu
And I follow "Event monitoring"
And I set the field "Select a course" to "Course 1"
And I follow "Subscribe to rule \"New rule course level\""
Expand All @@ -139,15 +139,15 @@ Feature: tool_monitor_subscriptions

Scenario: Navigating via quick link to rules
Given I log in as "admin"
And I follow "My preferences" in the user menu
And I follow "Preferences" in the user menu
When I follow "Event monitoring"
And I set the field "Select a course" to "Course 1"
Then I should see "You can manage rules from the Event monitoring rules page."
And I follow "Event monitoring rules"
And I should see "You can subscribe to rules from the Event monitoring page."
And I log out
And I log in as "teacher1"
And I follow "My preferences" in the user menu
And I follow "Preferences" in the user menu
And I follow "Event monitoring"
And I set the field "Select a course" to "Course 1"
And I should see "You can manage rules from the Event monitoring rules page."
Expand All @@ -159,7 +159,7 @@ Feature: tool_monitor_subscriptions
And I should not see "You can manage rules from the Event monitoring rules page."
And I log out
And I log in as "teacher2"
And I follow "My preferences" in the user menu
And I follow "Preferences" in the user menu
And I follow "Event monitoring"
And I set the field "Select a course" to "Course 1"
And I should not see "You can manage rules the from the Event monitoring rules page."
Expand All @@ -170,15 +170,15 @@ Feature: tool_monitor_subscriptions
| tool/monitor:managerules | Prohibit |
And I log out
And I log in as "teacher1"
And I follow "My preferences" in the user menu
And I follow "Preferences" in the user menu
And I follow "Event monitoring"
When I set the field "Select a course" to "Course 1"
Then I should see "You can manage rules from the Event monitoring rules page."
And I set the field "Select a course" to "Course 2"
And I should not see "You can manage rules from the Event monitoring rules page."
And I log out
And I log in as "teacher2"
And I follow "My preferences" in the user menu
And I follow "Preferences" in the user menu
And I follow "Event monitoring"
And I set the field "Select a course" to "Course 1"
And I should not see "You can manage rules from the Event monitoring rules page."
Expand Down
2 changes: 1 addition & 1 deletion badges/mybackpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
$PAGE->set_url(new moodle_url('/badges/mybackpack.php'));
$PAGE->set_context($context);

$title = get_string('mybackpack', 'badges');
$title = get_string('backpackdetails', 'badges');
$PAGE->set_title($title);
$PAGE->set_heading(fullname($USER));
$PAGE->set_pagelayout('mydashboard');
Expand Down
2 changes: 1 addition & 1 deletion badges/mybadges.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@

$PAGE->set_context($context);

$title = get_string('mybadges', 'badges');
$title = get_string('badges', 'badges');
$PAGE->set_title($title);
$PAGE->set_heading(fullname($USER));
$PAGE->set_pagelayout('mydashboard');
Expand Down
2 changes: 1 addition & 1 deletion badges/newbadge.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
$fordb->courseid = ($type == BADGE_TYPE_COURSE) ? $courseid : null;
$fordb->messagesubject = get_string('messagesubject', 'badges');
$fordb->message = get_string('messagebody', 'badges',
html_writer::link($CFG->wwwroot . '/badges/mybadges.php', get_string('mybadges', 'badges')));
html_writer::link($CFG->wwwroot . '/badges/mybadges.php', get_string('managebadges', 'badges')));
$fordb->attachment = 1;
$fordb->notification = BADGE_MESSAGE_NEVER;
$fordb->status = BADGE_STATUS_INACTIVE;
Expand Down
16 changes: 8 additions & 8 deletions badges/tests/behat/award_badge.feature
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ Feature: Award badges
And I press "Enable access"
And I press "Continue"
And I click on "Admin User" "link"
And I follow "My profile" in the open menu
And I follow "Profile" in the open menu
And I follow "Edit profile"
And I expand all fieldsets
And I set the field "Phone" to "123456789"
And I press "Update profile"
And I follow "My profile" in the user menu
And I follow "Profile" in the user menu
Then I should see "Profile Badge"
And I should not see "There are no badges available."

Expand Down Expand Up @@ -69,7 +69,7 @@ Feature: Award badges
Then I should see "Recipients (2)"
And I log out
And I log in as "student"
And I follow "My profile" in the user menu
And I follow "Profile" in the user menu
Then I should see "Site Badge"

@javascript
Expand Down Expand Up @@ -112,7 +112,7 @@ Feature: Award badges
Then I should see "Recipients (2)"
And I log out
And I log in as "student1"
And I follow "My profile" in the user menu
And I follow "Profile" in the user menu
And I follow "Course 1"
And I should see "Course Badge"

Expand Down Expand Up @@ -157,13 +157,13 @@ Feature: Award badges
When I press "Continue"
And I log out
And I log in as "student1"
And I follow "My profile" in the user menu
And I follow "Profile" in the user menu
And I follow "Course 1"
Then I should not see "badges"
And I am on homepage
And I follow "Course 1"
And I press "Mark as complete: Test assignment name"
And I follow "My profile" in the user menu
And I follow "Profile" in the user menu
And I follow "Course 1"
Then I should see "Course Badge"

Expand Down Expand Up @@ -214,7 +214,7 @@ Feature: Award badges
When I press "Continue"
And I log out
And I log in as "student1"
And I follow "My profile" in the user menu
And I follow "Profile" in the user menu
And I follow "Course 1"
Then I should not see "badges"
And I am on homepage
Expand All @@ -232,5 +232,5 @@ Feature: Award badges
And I am on site homepage
And I log out
And I log in as "student1"
And I follow "My profile" in the user menu
And I follow "Profile" in the user menu
Then I should see "Course Badge"
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Feature: The activity results block displays student scores
| Description | Offline text |
| assignsubmission_file_enabled | 0 |
And I follow "Course 1"
And I follow "Grades"
And I navigate to "Grades" node in "Course administration"
And I turn editing mode on
And I give the grade "90.00" to the user "Student 1" for the grade item "Test assignment"
And I give the grade "80.00" to the user "Student 2" for the grade item "Test assignment"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Feature: The activity results block displays student scores
| Description | Offline text |
| assignsubmission_file_enabled | 0 |
And I follow "Course 1"
And I follow "Grades"
And I navigate to "Grades" node in "Course administration"
And I turn editing mode on
And I give the grade "90.00" to the user "Student 1" for the grade item "Test assignment"
And I give the grade "80.00" to the user "Student 2" for the grade item "Test assignment"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Feature: The activity results block displays student scores
| assignsubmission_file_enabled | 0 |
| Group mode | Separate groups |
And I follow "Course 1"
And I follow "Grades"
And I navigate to "Grades" node in "Course administration"
And I turn editing mode on
And I give the grade "100.00" to the user "Student 1" for the grade item "Test assignment"
And I give the grade "90.00" to the user "Student 2" for the grade item "Test assignment"
Expand Down Expand Up @@ -97,7 +97,7 @@ Feature: The activity results block displays student scores
| assignsubmission_file_enabled | 0 |
| Group mode | Separate groups |
And I follow "Course 1"
And I follow "Grades"
And I navigate to "Grades" node in "Course administration"
And I turn editing mode on
And I give the grade "100.00" to the user "Student 1" for the grade item "Test assignment"
And I give the grade "90.00" to the user "Student 2" for the grade item "Test assignment"
Expand Down Expand Up @@ -144,7 +144,7 @@ Feature: The activity results block displays student scores
| assignsubmission_file_enabled | 0 |
| Group mode | Separate groups |
And I follow "Course 1"
And I follow "Grades"
And I navigate to "Grades" node in "Course administration"
And I turn editing mode on
And I give the grade "100.00" to the user "Student 1" for the grade item "Test assignment"
And I give the grade "90.00" to the user "Student 2" for the grade item "Test assignment"
Expand Down Expand Up @@ -191,7 +191,7 @@ Feature: The activity results block displays student scores
| assignsubmission_file_enabled | 0 |
| Group mode | Separate groups |
And I follow "Course 1"
And I follow "Grades"
And I navigate to "Grades" node in "Course administration"
And I turn editing mode on
And I give the grade "100.00" to the user "Student 1" for the grade item "Test assignment"
And I give the grade "90.00" to the user "Student 2" for the grade item "Test assignment"
Expand Down Expand Up @@ -245,7 +245,7 @@ Feature: The activity results block displays student scores
| assignsubmission_file_enabled | 0 |
| Group mode | Separate groups |
And I follow "Course 1"
And I follow "Grades"
And I navigate to "Grades" node in "Course administration"
And I turn editing mode on
And I give the grade "100.00" to the user "Student 1" for the grade item "Test assignment"
And I give the grade "90.00" to the user "Student 2" for the grade item "Test assignment"
Expand Down Expand Up @@ -298,7 +298,7 @@ Feature: The activity results block displays student scores
| assignsubmission_file_enabled | 0 |
| Group mode | Separate groups |
And I follow "Course 1"
And I follow "Grades"
And I navigate to "Grades" node in "Course administration"
And I turn editing mode on
And I give the grade "100.00" to the user "Student 1" for the grade item "Test assignment"
And I give the grade "90.00" to the user "Student 2" for the grade item "Test assignment"
Expand Down Expand Up @@ -351,7 +351,7 @@ Feature: The activity results block displays student scores
| assignsubmission_file_enabled | 0 |
| Group mode | Separate groups |
And I follow "Course 1"
And I follow "Grades"
And I navigate to "Grades" node in "Course administration"
And I turn editing mode on
And I give the grade "100.00" to the user "Student 1" for the grade item "Test assignment"
And I give the grade "90.00" to the user "Student 2" for the grade item "Test assignment"
Expand Down Expand Up @@ -402,7 +402,7 @@ Feature: The activity results block displays student scores
| assignsubmission_file_enabled | 0 |
| Group mode | Separate groups |
And I follow "Course 1"
And I follow "Grades"
And I navigate to "Grades" node in "Course administration"
And I turn editing mode on
And I give the grade "100.00" to the user "Student 1" for the grade item "Test assignment"
And I give the grade "90.00" to the user "Student 2" for the grade item "Test assignment"
Expand Down
Loading

0 comments on commit 4887d15

Please sign in to comment.