projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website]
/
web
/
core
/
modules
/
simpletest
/
simpletest.module
diff --git
a/web/core/modules/simpletest/simpletest.module
b/web/core/modules/simpletest/simpletest.module
index 0814d882d7101ed22a46130614e71bb4f3b35f0a..35fdd92cc19d1e4fb67ad894ca593cfcf7c37347 100644
(file)
--- a/
web/core/modules/simpletest/simpletest.module
+++ b/
web/core/modules/simpletest/simpletest.module
@@
-855,6
+855,7
@@
function simpletest_phpunit_testcase_to_row($test_id, \SimpleXMLElement $testcas
$attributes = $testcase->attributes();
$attributes = $testcase->attributes();
+ $function = $attributes->class . '->' . $attributes->name . '()';
$record = [
'test_id' => $test_id,
'test_class' => (string) $attributes->class,
$record = [
'test_id' => $test_id,
'test_class' => (string) $attributes->class,
@@
-862,9
+863,11
@@
function simpletest_phpunit_testcase_to_row($test_id, \SimpleXMLElement $testcas
'message' => $message,
// @todo: Check on the proper values for this.
'message_group' => 'Other',
'message' => $message,
// @todo: Check on the proper values for this.
'message_group' => 'Other',
- 'function' => $
attributes->class . '->' . $attributes->name . '()'
,
+ 'function' => $
function
,
'line' => $attributes->line ?: 0,
'line' => $attributes->line ?: 0,
- 'file' => $attributes->file,
+ // There are situations when the file will not be present because a PHPUnit
+ // @requires has caused a test to be skipped.
+ 'file' => $attributes->file ?: $function,
];
return $record;
}
];
return $record;
}