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.
In \Drupal\simpletest\NodeCreationTrait
there is
* @deprecated in Drupal 8.4.x. Will be removed before Drupal 9.0.0. Use
* Drupal\Tests\NodeCreationTrait instead.
*
* @see https://www.drupal.org/node/2884454
*/
but there is no class "Drupal\Tests\NodeCreationTrait" it should probably reference \Drupal\Tests\node\Traits\NodeCreationTrait
instead.
Comment | File | Size | Author |
---|---|---|---|
#3 | drupal-update_comment_namespace-2921860-3.patch | 575 bytes | laughnan |
Comments
Comment #2
tedbowComment #3
laughnanWere you thinking something like this @tedbow?
Comment #4
ikit-claw CreditAttribution: ikit-claw as a volunteer commented@laughnan I was just about to upload the same thing. Looks good.
Comment #5
ikit-claw CreditAttribution: ikit-claw as a volunteer commentedApplied the patch no issues found.
Comment #6
tedbowI also checked out the patch and it looks good. Thanks to @ikit-claw and @laughnan!
Comment #7
laughnanThanks for checking @ikit-claw and @tedbow!
Comment #8
catchCommitted ab172aa and pushed to 8.5.x. Thanks!
Comment #10
Mile23Cool, thanks for fixing my typo. :-)
The problem's still in 8.4.x, though.
In fact.. Many of those traits' deprecation messages are incorrect: http://cgit.drupalcode.org/drupal/commit/?h=8.4.x&id=71e5829354208d40c08...
UserCreationTrait
,NodeCreationTrait
,ContentTypeCreationTrait
,BlockCreationTrait
are all wrong, in 8.4.x and the unfixed ones in 8.5.x.Fix in a follow-up or rescope here?Edit: Never mind.Comment #11
Mile23Follow-up: #2922371: Numerous deprecation messages for test traits do not reference the correct replacement