You are here

TESTING.txt in Service Container 7.2

Same filename and directory in other branches
  1. 7 lib/Drupal/Component/Gettext/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:

$ cd ./core
$ ./vendor/bin/phpunit --group Gettext

File

lib/Drupal/Component/Gettext/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. $ cd ./core
  13. $ ./vendor/bin/phpunit --group Gettext