namespace Drupal\Tests\node\Traits

Same name in other branches
  1. 9 Drupal\Tests\node\Traits
  2. 10 Drupal\Tests\node\Traits
  3. 11.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.