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

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