namespace Drupal\Tests\node\Traits

Same name in other branches
  1. 10 Drupal\Tests\node\Traits
  2. 11.x Drupal\Tests\node\Traits
  3. 8.9.x Drupal\Tests\node\Traits
Object name File name Summary
ContentTypeCreationTrait core/modules/node/tests/src/Traits/ContentTypeCreationTrait.php Provides methods to create content type from given values.
NodeCreationTrait core/modules/node/tests/src/Traits/NodeCreationTrait.php Provides methods to create node based on default settings.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.