-
Functional Test
-
Minor
-
Moodle 4.3
Requirements
- Run your site with public access and HTTPS (use ngrok or similar).
- An outgoing server configured (mailcacher or similar). The QA testing site can't be used, as sending of emails is disabled.
- One account on https://badgr.com/
- Two accounts on https://eu.badgr.com/
Setup
- Login as admin.
- Create one user (s1) and set the Moodle email to match the email used in the badgr.com account.
- Create another user (s2) and set the Moodle email to match the email for one of the eu.badgr.com accounts.
- Create a badge, publish it and award it to the s1 and s2 users.
Testing scenario 1. Badgr (using OBv2.1)
- Login as admin.
- Go to "Site administration > Badges > Manage backpacks".
- Create a new backpack with the following information:
- API version supported: Open Badges v2.1
- Backpack URL: https://badgr.com
- Check "Backpack API URL" is not displayed in the form when Open Badges v2.1 is selected.
- Go to "Site administration > Server > OAuth 2 services".
- Check a new OAuth service "Canvas Badges", "Default Frontend Config" or similar has been created.
- Go to the Configure endpoints page for this issuer.
- Check "apiBase" is one of the endpoints displayed.
- Login as s1.
- Go to the user preferences page.
- Access to "Backpack settings".
- Select "https://badgr.com" from the list and connect using the user account in badgr.com.
- Go to the user profile page and access the badge you've been awarded.
- Click the "Add to backpack" button.
- Check the message "Added badge to backpack " is displayed.
Testing scenario 2. Badgr (using OBv2.0)
- Login as admin.
- Go to "Site administration > Badges > Manage backpacks".
- Create a new backpack with the following information:
- API version supported: Open Badges v2.0
- Backpack URL: https://eu.badgr.com/
- Backpack API URL: https://api.eu.badgr.io/v2
- Check "Include authentication details with the backpack"
- Badge issuer email address: the email of the other user account in eu.badgr.com
- Badge issuer password: password for the previous user
- Click the "Test settings" icon near the delete one.
- Check the "Backpack connection successfully established" message is displayed.
- Login as s2.
- Go to the user preferences page.
- Access to "Backpack settings".
- Select "https://eu.badgr.com/" from the list and connect using the user account in badgr.com.
- Open the verification email and open the URL to validate the account.
- Confirm status is set to Connected.
- Go to the user profile page and access the badge you've been awarded.
- Click the "Add to backpack" button.
- Check the message "Added badge to backpack " is displayed.
- has been marked as being related by
-
MDL-79303 Error "Argument #1 ($value) must be of type Countable|array, stdClass given" when accessing to user profile with external badges
- Closed