@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | // NOTE: no MOODLE_INTERNAL test here, this file may be required by behat before including /config.php. |
| 27 | 27 | |
| 28 | -require_once(__DIR__ . '/../../../../../../behat/behat_base.php'); |
|
| 28 | +require_once(__DIR__.'/../../../../../../behat/behat_base.php'); |
|
| 29 | 29 | |
| 30 | 30 | |
| 31 | 31 | /** |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | |
| 48 | 48 | // We spin to give time to the iframe to be loaded. |
| 49 | 49 | $this->spin( |
| 50 | - function () { |
|
| 50 | + function() { |
|
| 51 | 51 | $this->switch_to_popup_iframe(); |
| 52 | 52 | // If no exception we are done. |
| 53 | 53 | return true; |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | try { |
| 76 | 76 | $this->getSession()->executeScript($function); |
| 77 | 77 | } catch (Exception $e) { |
| 78 | - throw new \Exception("iFrame was NOT found." . PHP_EOL . $e->getMessage()); |
|
| 78 | + throw new \Exception("iFrame was NOT found.".PHP_EOL.$e->getMessage()); |
|
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | // After injecting the name attribute to the iFrame |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | * |
| 92 | 92 | * @throws Exception When no iFrame is found. |
| 93 | 93 | */ |
| 94 | - public function i_switch_to_editor_iframe() { |
|
| 94 | + public function i_switch_to_editor_iframe() { |
|
| 95 | 95 | |
| 96 | 96 | // Find the only iFrame in the document by tag name. |
| 97 | 97 | // The reason: this iFrame has only one selector: id, that can not be used to find it |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | try { |
| 106 | 106 | $this->getSession()->executeScript($function); |
| 107 | 107 | } catch (Exception $e) { |
| 108 | - throw new \Exception("iFrame was NOT found." . PHP_EOL . $e->getMessage()); |
|
| 108 | + throw new \Exception("iFrame was NOT found.".PHP_EOL.$e->getMessage()); |
|
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | // After injecting the name attribute to the iFrame |