From f72b8db576e76e1774fdd002e8ca864c0d027410 Mon Sep 17 00:00:00 2001 From: Christopher Allford Date: Wed, 15 Jul 2020 14:29:13 -0700 Subject: [PATCH] Added some exceptions to the PHPCS standards for unit tests The file comments and @throws tags are unnecessary in unit tests. --- phpcs.xml | 10 +++++++++- .../includes/admin/helper/class-wc-helper-api.php | 13 ------------- .../includes/admin/helper/class-wc-helper-test.php | 5 ----- ...lass-wc-product-csv-importer-controller-test.php | 8 ++------ tests/php/includes/class-wc-install-test.php | 5 ----- 5 files changed, 11 insertions(+), 30 deletions(-) diff --git a/phpcs.xml b/phpcs.xml index 8075b9d8ccc..c2ac57afd5a 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -25,7 +25,7 @@ - + @@ -61,4 +61,12 @@ tests/php tests/Tools/ + + + tests/php/ + + + + tests/php/ + diff --git a/tests/php/includes/admin/helper/class-wc-helper-api.php b/tests/php/includes/admin/helper/class-wc-helper-api.php index d59711770a2..3b30727df22 100644 --- a/tests/php/includes/admin/helper/class-wc-helper-api.php +++ b/tests/php/includes/admin/helper/class-wc-helper-api.php @@ -1,9 +1,4 @@