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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tedbow created an issue. See original summary.

tedbow’s picture

Issue tags: +Novice
laughnan’s picture

Were you thinking something like this @tedbow?

ikit-claw’s picture

Status: Active » Needs review

@laughnan I was just about to upload the same thing. Looks good.

ikit-claw’s picture

Status: Needs review » Reviewed & tested by the community

Applied the patch no issues found.

tedbow’s picture

I also checked out the patch and it looks good. Thanks to @ikit-claw and @laughnan!

laughnan’s picture

Thanks for checking @ikit-claw and @tedbow!

catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed ab172aa and pushed to 8.5.x. Thanks!

  • catch committed ab172aa on 8.5.x
    Issue #2921860 by laughnan, tedbow: \Drupal\simpletest\NodeCreationTrait...
Mile23’s picture

Status: Fixed » Needs work

Cool, 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.

Mile23’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.