summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris McCafferty2017-04-26 20:38:28 (GMT)
committerChris McCafferty2017-04-26 20:38:28 (GMT)
commitdccab71eb97495370383d990004c0cfcba65de40 (patch)
treeb14adc878e467f853af3f79b0c3ad038db819af0
parent13aa53b1f257b4dfad226ba17da283b88cbd1a33 (diff)
Issue #2798273 by Mile23, tar_inet: simpletest_phpunit_configuration_filepath() is dead code. Deprecate it
-rw-r--r--core/modules/simpletest/simpletest.module7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/modules/simpletest/simpletest.module b/core/modules/simpletest/simpletest.module
index 8b1cc23..e5c67d3 100644
--- a/core/modules/simpletest/simpletest.module
+++ b/core/modules/simpletest/simpletest.module
@@ -285,8 +285,15 @@ function simpletest_phpunit_xml_filepath($test_id) {
*
* @return string
* The path to core's phpunit.xml.dist configuration file.
+ *
+ * @deprecated in Drupal 8.4.x for removal before Drupal 9.0.0. PHPUnit test
+ * runners should change directory into core/ and then run the phpunit tool.
+ * See simpletest_phpunit_run_command() for an example.
+ *
+ * @see simpletest_phpunit_run_command()
*/
function simpletest_phpunit_configuration_filepath() {
+ @trigger_error('The ' . __FUNCTION__ . ' function is deprecated since version 8.4.x and will be removed in 9.0.0.', E_USER_DEPRECATED);
return \Drupal::root() . '/core/phpunit.xml.dist';
}