Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
PHPUnit 6.5.14 is failing with a warning due to Drupal\Tests\address\Kernel\Plugin\migrate\field\AddressFieldTest. The problem is that it is translating "testLegacyPlugin" to be a legacy test method, not the actual legacy plugin.
This is the failure locally
<?xml version="1.0"?>
<testsuite>
<testcase classname="Drupal\Tests\address\Kernel\Plugin\migrate\field\AddressFieldTest"
name="Drupal\Tests\address\Kernel\Plugin\migrate\field\AddressFieldTest">
<failure type="failure" message="Other">PHPunit Test failed to complete; Error: PHPUnit 6.5.14 by Sebastian
Bergmann and contributors.<br />
<br />
Testing Drupal\Tests\address\Kernel\Plugin\migrate\field\AddressFieldTest
.W 2 / 2 (100%)<br />
<br />
Time: 4.71 seconds, Memory: 10.00MB<br />
<br />
There was 1 warning:<br />
<br />
1) Drupal\Tests\address\Kernel\Plugin\migrate\field\AddressFieldTest::testLegacyPlugin<br />
Using the &quot;testLegacy&quot; prefix to mark tests as legacy is deprecated since version 3.3 and
will be removed in 4.0. Use the &quot;@group legacy&quot; notation instead to add the test to the
legacy group.<br />
<br />
WARNINGS!<br />
Tests: 2, Assertions: 6, Warnings: 1.<br />
</failure>
</testcase>
</testsuite>
Comment | File | Size | Author |
---|---|---|---|
#3 | 3046014-3.patch | 734 bytes | mglaman |
Comments
Comment #2
mglamanActually, I think this warning is caused by symfony/phpunit-bridge
Comment #3
mglamanThis changes it to "testDeprecated".
Comment #5
bojanz CreditAttribution: bojanz at Centarro commentedThanks, Matt!