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/FileSystem/TESTING.txt
  6. 11.1.x core/lib/Drupal/Component/FileCache/TESTING.txt
  7. 11.1.x core/lib/Drupal/Component/Transliteration/TESTING.txt
  8. 11.1.x core/lib/Drupal/Component/Assertion/TESTING.txt
  9. 11.1.x core/lib/Drupal/Component/Discovery/TESTING.txt
  10. 11.1.x core/lib/Drupal/Component/Graph/TESTING.txt
  11. 11.1.x core/lib/Drupal/Component/PhpStorage/TESTING.txt
  12. 11.1.x core/lib/Drupal/Component/ClassFinder/TESTING.txt
  13. 11.1.x core/lib/Drupal/Component/Datetime/TESTING.txt
  14. 11.1.x core/lib/Drupal/Component/Serialization/TESTING.txt
  15. 11.1.x core/lib/Drupal/Component/FileSecurity/TESTING.txt
  16. 11.1.x core/lib/Drupal/Component/HttpFoundation/TESTING.txt
  17. 11.1.x core/lib/Drupal/Component/Annotation/TESTING.txt
  18. 11.1.x core/lib/Drupal/Component/Gettext/TESTING.txt
  19. 11.1.x core/lib/Drupal/Component/Plugin/TESTING.txt
  20. 11.1.x core/lib/Drupal/Component/Version/TESTING.txt
  21. 11.1.x core/lib/Drupal/Component/Render/TESTING.txt
  22. 11.1.x core/lib/Drupal/Component/ProxyBuilder/TESTING.txt
  23. 11.1.x core/lib/Drupal/Component/FrontMatter/TESTING.txt
  24. 11.1.x core/lib/Drupal/Component/DependencyInjection/TESTING.txt
  25. 11.1.x core/lib/Drupal/Component/Uuid/TESTING.txt
  26. 11.1.x core/lib/Drupal/Component/EventDispatcher/TESTING.txt
  27. 11.1.x core/lib/Drupal/Component/Utility/TESTING.txt
  28. 11.1.x core/lib/Drupal/Component/Diff/TESTING.txt
HOW-TO: Test these Drupal scaffold files

In order to test these scaffold files, you'll need to get the entire Drupal repo and
run the tests there.

You'll find the tests in core/tests/Drupal/Tests/ComposerIntegrationTest.php.

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

You can run a single phpunit test file like so:

$ ./vendor/bin/phpunit -c core core/tests/Drupal/Tests/ComposerIntegrationTest.php

File

core/assets/scaffold/TESTING.txt

View source
  1. HOW-TO: Test these Drupal scaffold files
  2. In order to test these scaffold files, you'll need to get the entire Drupal repo and
  3. run the tests there.
  4. You'll find the tests in core/tests/Drupal/Tests/ComposerIntegrationTest.php.
  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. You can run a single phpunit test file like so:
  10. $ ./vendor/bin/phpunit -c core core/tests/Drupal/Tests/ComposerIntegrationTest.php
RSS feed
Powered by Drupal