And I should see "Student 001"
And I click on "Enrol users" "button" in the "Enrol users" "dialogue"
Then I should see "Active" in the "Student 001" "table_row"
- And I should see "1 enrolled users"
+ # The following line is commented out as auto-hidden toasts fire events in the wrong place.
+ # TODO Uncomment this when we upgrade Bootstrap. This issue is fixed in v4.4.0 - see MDL-67386.
+ #And I should see "1 enrolled users"
@javascript
Scenario: Searching for a non-existing user
When I log in as "admin"
Then the following "users" exist:
| username | firstname | lastname | email | phone1 | phone2 | department | institution | city | country |
- | student100 | Student | 100 | student100@example.com | 1234567892 | 1234567893 | ABC1 | ABC2 | CITY1 | UK |
+ | student100 | Student | 100 | student100@example.com | 1234567892 | 1234567893 | ABC1 | ABC2 | CITY1 | GB |
And the following config values are set as admin:
| showuseridentity | idnumber,email,city,country,phone1,phone2,department,institution |
When I am on "Course 001" course homepage
And I press "Enrol users"
When I set the field "Select users" to "student100@example.com"
And I click on ".form-autocomplete-downarrow" "css_element" in the "Select users" "form_row"
- Then I should see "student100@example.com, CITY1, UK, 1234567892, 1234567893, ABC1, ABC2"
+ Then I should see "student100@example.com, CITY1, GB, 1234567892, 1234567893, ABC1, ABC2"
# Remove identity field in setting User policies
And the following config values are set as admin:
| showuseridentity | idnumber,email,phone1,phone2,department,institution |
- cron_execute_plugin_type()
- cron_bc_hack_plugin_functions()
Please, use the Task API instead: https://docs.moodle.org/dev/Task_API
+* Introduce new hooks for plugin developers:
+ - <component>_can_course_category_delete($category)
+ - <component>_can_course_category_delete_move($category, $newcategory)
+ These hooks allow plugin developers greater control over category deletion. Plugin can return false in those
+ functions if category deletion or deletion with content move to the new parent category is not permitted.
+ Both $category and $newcategory params are instances of core_course_category class.
+ - <component>_pre_course_category_delete_move($category, $newcategory)
+ This hook is expanding functionality of existing <component>_pre_course_category_delete hook and allow plugin developers
+ to execute code prior to category deletion when its content is moved to another category.
+ Both $category and $newcategory params are instances of core_course_category class.
+ - <component>_get_course_category_contents($category)
+ This hook allow plugin developers to add information that is displayed on category deletion form. Function should
+ return string, which will be added to the list of category contents shown on the form. $category param is an instance
+ of core_course_category class.
+ * Data generator create_user in both unittests and behat now validates user fields and triggers user_created event
=== 3.8 ===
* Add CLI option to notify all cron tasks to stop: admin/cli/cron.php --stop