Commit 5e0b0883 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1568616: Added email to warning message in open badges block updated behat test"

parents be82a1ad 219eb692
......@@ -34,6 +34,6 @@ json_reply(false, array(
'hosttitle' => $hosttitle,
'uid' => $uid,
'badgegroups' => isset($uid) ? PluginBlocktypeOpenbadgedisplayer::get_badgegroupnames($host, $uid) : null,
'nobackpackmsg' => get_string('nobackpackidin', 'blocktype.openbadgedisplayer', $hosttitle),
'nobadgegroupsmsg' => get_string('nobadgegroupsin', 'blocktype.openbadgedisplayer', $hosttitle)
'nobackpackmsg' => get_string('nobackpackidin1', 'blocktype.openbadgedisplayer', $email, $hosttitle),
'nobadgegroupsmsg' => get_string('nobadgegroupsin1', 'blocktype.openbadgedisplayer', $hosttitle, $email)
));
......@@ -57,9 +57,9 @@ $string['nobackpack'] = 'No Backpack found.<br> Please add your <a href="%s">Bac
$string['nobadgegroups'] = 'No public badge collections / badges found.';
$string['nobackpackidin'] = 'Your email is not found in the service %s.';
$string['nobackpackidin1'] = 'Your email %s is not found in the service %s.';
$string['nobadgegroupsin'] = 'No public badge collections / badges found in the service: %s.';
$string['nobadgegroupsin1'] = 'No public badge collections / badges found in the service: %s for email %s.';
$string['confighelp'] = 'Select the badge collections to show in this block.<br/>Visit the following services to manage your collections and badges:<br/>%s';
......
......@@ -24,7 +24,7 @@ Scenario: Open badges block
And I follow "Open Badges"
And I press "Add"
And I wait "5" seconds
Then I should see "Your email is not found in the service"
Then I should see "Your email test01@example.com is not found in the service"
And I press "Save"
And I wait "1" seconds
Then I should see "No public badge collections / badges found."
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment