Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

TESTING.txt

Same filename in this branch
  1. 11.1.x composer/Generator/TESTING.txt
  2. 11.1.x composer/Plugin/ProjectMessage/TESTING.txt
  3. 11.1.x composer/Plugin/VendorHardening/TESTING.txt
  4. 11.1.x composer/Plugin/Scaffold/TESTING.txt
  5. 11.1.x core/lib/Drupal/Component/FileCache/TESTING.txt
  6. 11.1.x core/lib/Drupal/Component/Transliteration/TESTING.txt
  7. 11.1.x core/lib/Drupal/Component/Assertion/TESTING.txt
  8. 11.1.x core/lib/Drupal/Component/Discovery/TESTING.txt
  9. 11.1.x core/lib/Drupal/Component/Graph/TESTING.txt
  10. 11.1.x core/lib/Drupal/Component/PhpStorage/TESTING.txt
  11. 11.1.x core/lib/Drupal/Component/ClassFinder/TESTING.txt
  12. 11.1.x core/lib/Drupal/Component/Datetime/TESTING.txt
  13. 11.1.x core/lib/Drupal/Component/Serialization/TESTING.txt
  14. 11.1.x core/lib/Drupal/Component/FileSecurity/TESTING.txt
  15. 11.1.x core/lib/Drupal/Component/HttpFoundation/TESTING.txt
  16. 11.1.x core/lib/Drupal/Component/Annotation/TESTING.txt
  17. 11.1.x core/lib/Drupal/Component/Gettext/TESTING.txt
  18. 11.1.x core/lib/Drupal/Component/Plugin/TESTING.txt
  19. 11.1.x core/lib/Drupal/Component/Version/TESTING.txt
  20. 11.1.x core/lib/Drupal/Component/Render/TESTING.txt
  21. 11.1.x core/lib/Drupal/Component/ProxyBuilder/TESTING.txt
  22. 11.1.x core/lib/Drupal/Component/FrontMatter/TESTING.txt
  23. 11.1.x core/lib/Drupal/Component/DependencyInjection/TESTING.txt
  24. 11.1.x core/lib/Drupal/Component/Uuid/TESTING.txt
  25. 11.1.x core/lib/Drupal/Component/EventDispatcher/TESTING.txt
  26. 11.1.x core/lib/Drupal/Component/Utility/TESTING.txt
  27. 11.1.x core/lib/Drupal/Component/Diff/TESTING.txt
  28. 11.1.x core/assets/scaffold/TESTING.txt
HOW-TO: Test this Drupal component

In order to test this component, you'll need to get the entire Drupal repo and
run the tests there.

You'll find the tests under core/tests/Drupal/Tests/Component.

You can get the full Drupal repo here:
https://www.drupal.org/project/drupal/git-instructions

You can find more information about running PHPUnit tests with Drupal here:
https://www.drupal.org/node/2116263

Each component in the Drupal\Component namespace has its own annotated test
group. You can use this group to run only the tests for this component. Like
this:

$ ./vendor/bin/phpunit -c core --group FileSystem

File

core/lib/Drupal/Component/FileSystem/TESTING.txt

View source
  1. HOW-TO: Test this Drupal component
  2. In order to test this component, you'll need to get the entire Drupal repo and
  3. run the tests there.
  4. You'll find the tests under core/tests/Drupal/Tests/Component.
  5. You can get the full Drupal repo here:
  6. https://www.drupal.org/project/drupal/git-instructions
  7. You can find more information about running PHPUnit tests with Drupal here:
  8. https://www.drupal.org/node/2116263
  9. Each component in the Drupal\Component namespace has its own annotated test
  10. group. You can use this group to run only the tests for this component. Like
  11. this:
  12. $ ./vendor/bin/phpunit -c core --group FileSystem
RSS feed
Powered by Drupal