Skip to content

Commit

Permalink
update tests and distignore for .phpcs.xml.dist
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Croft committed Jul 20, 2018
1 parent d0ac996 commit 2f23c5c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ The following files are also included unless the `--skip-tests` is used:
* `bin/install-wp-tests.sh` configures the WordPress test suite and a test database.
* `tests/bootstrap.php` is the file that makes the current plugin active when running the test suite.
* `tests/test-sample.php` is a sample file containing test cases.
* `phpcs.xml.dist` is a collection of PHP_CodeSniffer rules.
* `.phpcs.xml.dist` is a collection of PHP_CodeSniffer rules.

**OPTIONS**

Expand Down Expand Up @@ -288,7 +288,7 @@ The following files are generated by default:
* `bin/install-wp-tests.sh` configures the WordPress test suite and a test database.
* `tests/bootstrap.php` is the file that makes the current plugin active when running the test suite.
* `tests/test-sample.php` is a sample file containing the actual tests.
* `phpcs.xml.dist` is a collection of PHP_CodeSniffer rules.
* `.phpcs.xml.dist` is a collection of PHP_CodeSniffer rules.

Learn more from the [plugin unit tests documentation](https://make.wordpress.org/cli/handbook/plugin-unit-tests/).

Expand Down Expand Up @@ -426,7 +426,7 @@ The following files are generated by default:
* `bin/install-wp-tests.sh` configures the WordPress test suite and a test database.
* `tests/bootstrap.php` is the file that makes the current theme active when running the test suite.
* `tests/test-sample.php` is a sample file containing the actual tests.
* `phpcs.xml.dist` is a collection of PHP_CodeSniffer rules.
* `.phpcs.xml.dist` is a collection of PHP_CodeSniffer rules.

Learn more from the [plugin unit tests documentation](https://make.wordpress.org/cli/handbook/plugin-unit-tests/).

Expand Down
2 changes: 1 addition & 1 deletion features/scaffold-plugin-tests.feature
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Feature: Scaffold plugin unit tests
"""
<exclude>./tests/test-sample.php</exclude>
"""
And the {PLUGIN_DIR}/hello-world/phpcs.xml.dist file should exist
And the {PLUGIN_DIR}/hello-world/.phpcs.xml.dist file should exist
And the {PLUGIN_DIR}/hello-world/circle.yml file should not exist
And the {PLUGIN_DIR}/hello-world/.circleci directory should not exist
And the {PLUGIN_DIR}/hello-world/bitbucket-pipelines.yml file should not exist
Expand Down
2 changes: 1 addition & 1 deletion features/scaffold-theme-tests.feature
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Feature: Scaffold theme unit tests
"""
<exclude>./tests/test-sample.php</exclude>
"""
And the {THEME_DIR}/p2child/phpcs.xml.dist file should exist
And the {THEME_DIR}/p2child/.phpcs.xml.dist file should exist
And the {THEME_DIR}/p2child/circle.yml file should not exist
And the {THEME_DIR}/p2child/.circleci directory should not exist
And the {THEME_DIR}/p2child/bitbucket-pipelines.yml file should not exist
Expand Down
2 changes: 1 addition & 1 deletion features/scaffold.feature
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ Feature: WordPress code scaffolding
.git
.gitignore
"""
And the {PLUGIN_DIR}/hello-world/phpcs.xml.dist file should contain:
And the {PLUGIN_DIR}/hello-world/.phpcs.xml.dist file should contain:
"""
<rule ref="PHPCompatibility"/>
<config name="testVersion" value="5.3-"/>
Expand Down
2 changes: 1 addition & 1 deletion templates/plugin-distignore.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ phpunit.xml.dist
multisite.xml
multisite.xml.dist
phpcs.xml
phpcs.xml.dist
.phpcs.xml.dist
README.md
wp-cli.local.yml
yarn.lock
Expand Down

0 comments on commit 2f23c5c

Please sign in to comment.