|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 | 2 |
|
| 3 | +<!-- TODO set checkForUnintentionallyCoveredCode="true" once https://www.drupal.org/node/2626832 is resolved. --> |
3 | 4 | <!-- PHPUnit expects functional tests to be run with either a privileged user
|
4 | 5 | or your current system user. See core/tests/README.md and
|
5 | 6 | https://www.drupal.org/node/2116263 for details.
|
6 | 7 | -->
|
7 | 8 | <phpunit bootstrap="web/core/tests/bootstrap.php" colors="true"
|
8 | 9 | beStrictAboutTestsThatDoNotTestAnything="true"
|
9 | 10 | beStrictAboutOutputDuringTests="true"
|
10 |
| - beStrictAboutChangesToGlobalState="true" |
11 |
| - checkForUnintentionallyCoveredCode="false"> |
| 11 | + beStrictAboutChangesToGlobalState="true"> |
12 | 12 | <!-- TODO set printerClass="\Drupal\Tests\Listeners\HtmlOutputPrinter" once
|
13 | 13 | https://youtrack.jetbrains.com/issue/WI-24808 is resolved. Drupal provides a
|
14 | 14 | result printer that links to the html output results for functional tests.
|
15 | 15 | Unfortunately, this breaks the output of PHPStorm's PHPUnit runner. However, if
|
16 | 16 | using the command line you can add
|
17 |
| - - -printerClass="\Drupal\Tests\Listeners\HtmlOutputPrinter" to use it (note |
18 |
| - there should be no spaces between the hyphens). |
| 17 | + - -printer="\Drupal\Tests\Listeners\HtmlOutputPrinter" to use it (note there |
| 18 | + should be no spaces between the hyphens). |
19 | 19 | -->
|
20 | 20 | <php>
|
21 | 21 | <!-- Set error reporting to E_ALL. -->
|
|
28 | 28 | <env name="SIMPLETEST_DB" value=""/>
|
29 | 29 | <!-- Example BROWSERTEST_OUTPUT_DIRECTORY value: /path/to/webroot/sites/simpletest/browser_output -->
|
30 | 30 | <env name="BROWSERTEST_OUTPUT_DIRECTORY" value=""/>
|
| 31 | + <!-- To disable deprecation testing uncomment the next line. --> |
| 32 | + <env name="SYMFONY_DEPRECATIONS_HELPER" value="weak_vendors"/> |
| 33 | + <!-- Example for changing the driver class for mink tests MINK_DRIVER_CLASS value: 'Drupal\FunctionalJavascriptTests\DrupalSelenium2Driver' --> |
| 34 | + <!-- Example for changing the driver args to mink tests MINK_DRIVER_ARGS value: '["http://127.0.0.1:8510"]' --> |
| 35 | + <!-- Example for changing the driver args to phantomjs tests MINK_DRIVER_ARGS_PHANTOMJS value: '["http://127.0.0.1:8510"]' --> |
| 36 | + <!-- Example for changing the driver args to webdriver tests MINK_DRIVER_ARGS_WEBDRIVER value: '["firefox", null, "http://localhost:4444/wd/hub"]' --> |
31 | 37 | </php>
|
32 | 38 | <testsuites>
|
33 | 39 | <testsuite name="unit">
|
|
44 | 50 | </testsuite>
|
45 | 51 | </testsuites>
|
46 | 52 | <listeners>
|
47 |
| - <listener class="\Drupal\Tests\Listeners\DrupalStandardsListener"> |
| 53 | + <listener class="\Drupal\Tests\Listeners\DrupalListener"> |
| 54 | + </listener> |
| 55 | + <!-- The Symfony deprecation listener has to come after the Drupal listener --> |
| 56 | + <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"> |
48 | 57 | </listener>
|
49 | 58 | </listeners>
|
50 | 59 | <!-- Filter for coverage reports. -->
|
|
0 commit comments