MDL-45064 lti: LTI types in activity chooser

This commit is contained in:
John Okely
2016-04-13 08:30:04 +08:00
committed by Marina Glancy
parent f40b444ef8
commit 01e8bfd745
7 changed files with 142 additions and 4 deletions
+14
View File
@@ -143,6 +143,20 @@ class behat_forms extends behat_base {
}
/**
* Sets the field to wwwroot plus the given path. Include the first slash.
*
* @Given /^I set the field "(?P<field_string>(?:[^"]|\\")*)" to local url "(?P<field_path_string>(?:[^"]|\\")*)"$/
* @throws ElementNotFoundException Thrown by behat_base::find
* @param string $field
* @param string $path
* @return void
*/
public function i_set_the_field_to_local_url($field, $path) {
global $CFG;
$this->set_field_value($field, $CFG->wwwroot . $path);
}
/**
* Sets the specified value to the field.
*