annotate core/lib/Drupal/Component/PhpStorage/TESTING.txt @ 5:12f9dff5fda9
tip
Update to Drupal core 8.7.1
author |
Chris Cannam |
date |
Thu, 09 May 2019 15:34:47 +0100 |
parents |
c75dbcec494b |
children |
|
rev |
line source |
Chris@0
|
1 HOW-TO: Test this Drupal component
|
Chris@0
|
2
|
Chris@0
|
3 In order to test this component, you'll need to get the entire Drupal repo and
|
Chris@0
|
4 run the tests there.
|
Chris@0
|
5
|
Chris@0
|
6 You'll find the tests under core/tests/Drupal/Tests/Component.
|
Chris@0
|
7
|
Chris@0
|
8 You can get the full Drupal repo here:
|
Chris@0
|
9 https://www.drupal.org/project/drupal/git-instructions
|
Chris@0
|
10
|
Chris@0
|
11 You can find more information about running PHPUnit tests with Drupal here:
|
Chris@0
|
12 https://www.drupal.org/node/2116263
|
Chris@0
|
13
|
Chris@0
|
14 Each component in the Drupal\Component namespace has its own annotated test
|
Chris@0
|
15 group. You can use this group to run only the tests for this component. Like
|
Chris@0
|
16 this:
|
Chris@0
|
17
|
Chris@0
|
18 $ ./vendor/bin/phpunit -c core --group PhpStorage
|