Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plugins bot
moodle-plugins-snapshots
Commits
419b2f17
Commit
419b2f17
authored
Jan 17, 2017
by
Dan Poltawski
Browse files
Merge branch 'wip-mdl-57669-m' of
https://github.com/rajeshtaneja/moodle
parents
bb72d319
ada21cb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/tests/behat/behat_hooks.php
View file @
419b2f17
...
...
@@ -429,6 +429,11 @@ class behat_hooks extends behat_base {
public
function
after_step_javascript
(
AfterStepScope
$scope
)
{
global
$CFG
,
$DB
;
// If step is undefined then throw exception, to get failed exit code.
if
(
$scope
->
getTestResult
()
->
getResultCode
()
===
Behat\Behat\Tester\Result\StepResult
::
UNDEFINED
)
{
throw
new
coding_exception
(
"Step '"
.
$scope
->
getStep
()
->
getText
()
.
"'' is undefined."
);
}
// Save the page content if the step failed.
if
(
!
empty
(
$CFG
->
behat_faildump_path
)
&&
$scope
->
getTestResult
()
->
getResultCode
()
===
Behat\Testwork\Tester\Result\TestResult
::
FAILED
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment