mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
Merge branch 'MDL-66999-master' of git://github.com/bmbrands/moodle
This commit is contained in:
commit
f00542c485
69 changed files with 1487 additions and 2168 deletions
|
@ -156,7 +156,8 @@ class behat_permissions extends behat_base {
|
|||
public function capability_has_permission($capabilityname, $permission) {
|
||||
|
||||
// We already know the name, so we just need the value.
|
||||
$radioxpath = "//table[@class='rolecap']/descendant::input[@type='radio']" .
|
||||
$radioxpath = "//table[contains(concat(' ',
|
||||
normalize-space(@class), ' '), ' rolecap ')]/descendant::input[@type='radio']" .
|
||||
"[@name='" . $capabilityname . "'][@checked]";
|
||||
|
||||
$checkedradio = $this->find('xpath', $radioxpath);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue