PHPUnit 4.8.35 by Sebastian Bergmann and contributors.
E
Time: 42.37 seconds, Memory: 36.00MB
There was 1 error:
1) Drupal\Tests\field_example\Functional\ColorBackgroundFormatterTest::testSingleValueField
Behat\Mink\Exception\ExpectationException: Current response status code is 404, but 200 expected.
/Users/paul/pj2/drupal/vendor/behat/mink/src/WebAssert.php:770
/Users/paul/pj2/drupal/vendor/behat/mink/src/WebAssert.php:130
/Users/paul/pj2/drupal/core/tests/Drupal/Tests/BrowserTestBase.php:717
/Users/paul/pj2/drupal/modules/examples/field_example/tests/src/Functional/FieldExampleBrowserTestBase.php:67
FAILURES!
Tests: 1, Assertions: 4, Errors: 1.
Examples always tests against the dev branch for the latest stable release. The current release is 8.3.2, so we should run tests against the core 8.3.x branch.
Comments
Comment #2
rfayComment #4
martin107 commentedTo express the test failure in conversational english
I looked in the file found this class and it had no testXYY() methods.
1) FieldExampleBrowserTestBase needs to be abstract
2) I fix the phpcs errors reported by testbot.
Comment #5
Lal_The patch works fine.
Comment #6
mile23@AbhishekLal: If you've reviewed a patch you can go ahead and set the status to 'reviewed and tested by the community.'
None of the converted tests are removed.
Running the tests like this:
..results in fail/errors:
Examples always tests against the dev branch for the latest stable release. The current release is 8.3.2, so we should run tests against the core 8.3.x branch.
Re-running the test in #4.
Comment #7
martin107 commentedThanks - files removed.
./vendor/bin/phpunit -c core/ --testsuite functional --group field_example --debug -vvv --stop-on-error
now shows as green.
Comment #9
mile23Ahh, that same old TestDiscovery bug that ruins everyone's day (or at least mine):
Anyway, yah, that's unrelated.
Committed and pushed. Thanks!