#452416 by bjaspan: Reformat status reporting code slightly to allow breakpoints in debuggers.
parent
9c79816c4f
commit
33eefeb784
|
@ -191,7 +191,14 @@ class DrupalWebTestCase {
|
||||||
|
|
||||||
// Return to testing prefix.
|
// Return to testing prefix.
|
||||||
$db_prefix = $current_db_prefix;
|
$db_prefix = $current_db_prefix;
|
||||||
return $status == 'pass' ? TRUE : FALSE;
|
// We do not use a ternary operator here to allow a breakpoint on
|
||||||
|
// test failure.
|
||||||
|
if ($status == 'pass') {
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue