function simpletest_phpunit_xml_filepath in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/simpletest/simpletest.module \simpletest_phpunit_xml_filepath()
Returns the path to use for PHPUnit's --log-junit option.
Parameters
$test_id: The current test ID.
Return value
string Path to the PHPUnit XML file to use for the current $test_id.
2 calls to simpletest_phpunit_xml_filepath()
- SimpletestPhpunitRunCommandTest::testSimpletestPhpUnitRunCommand in core/
modules/ simpletest/ tests/ src/ Unit/ SimpletestPhpunitRunCommandTest.php - simpletest_run_phpunit_tests in core/
modules/ simpletest/ simpletest.module - Executes PHPUnit tests and returns the results of the run.
File
- core/
modules/ simpletest/ simpletest.module, line 235 - Provides testing functionality.
Code
function simpletest_phpunit_xml_filepath($test_id) {
return \Drupal::service('file_system')
->realpath('public://simpletest') . '/phpunit-' . $test_id . '.xml';
}