From 3ff9afeac223b41afd60956a91ebacb0ed01e308 Mon Sep 17 00:00:00 2001 From: Lucas Bustamante Date: Tue, 19 Dec 2023 20:25:39 -0300 Subject: [PATCH 1/2] Use bistro for self-tests --- _tests/QITSelfTests.php | 2 +- .../{wporg-theme-storefront => bistro}/functions.php | 0 _tests/activation/childtheme/bistro/style.css | 7 +++++++ .../activation/childtheme/wporg-theme-storefront/style.css | 7 ------- .../{wporg-theme-storefront => bistro}/functions.php | 0 .../{wporg-theme-storefront => bistro}/index.php | 0 _tests/activation/parenttheme/bistro/style.css | 7 +++++++ .../parenttheme/wporg-theme-storefront/style.css | 6 ------ _tests/api/childtheme/bistro/style.css | 7 +++++++ _tests/api/childtheme/wporg-theme-storefront/style.css | 7 ------- .../{wporg-theme-storefront => bistro}/index.php | 0 _tests/api/parenttheme/bistro/style.css | 7 +++++++ _tests/api/parenttheme/wporg-theme-storefront/style.css | 6 ------ .../{wporg-theme-storefront => bistro}/front-page.php | 0 _tests/phpcompatibility/childtheme/bistro/style.css | 7 +++++++ .../childtheme/wporg-theme-storefront/style.css | 7 ------- .../{wporg-theme-storefront => bistro}/index.php | 0 _tests/phpcompatibility/parenttheme/bistro/style.css | 7 +++++++ .../parenttheme/wporg-theme-storefront/style.css | 6 ------ .../{wporg-theme-storefront => bistro}/index.php | 0 _tests/phpstan/childtheme/bistro/style.css | 7 +++++++ _tests/phpstan/childtheme/wporg-theme-storefront/style.css | 7 ------- .../{wporg-theme-storefront => bistro}/index.php | 0 _tests/phpstan/parenttheme/bistro/style.css | 7 +++++++ .../phpstan/parenttheme/wporg-theme-storefront/style.css | 6 ------ .../{wporg-theme-storefront => bistro}/functions.php | 0 _tests/security/childtheme/bistro/style.css | 7 +++++++ .../security/childtheme/wporg-theme-storefront/style.css | 7 ------- .../{wporg-theme-storefront => bistro}/index.php | 0 _tests/security/parenttheme/bistro/style.css | 7 +++++++ .../security/parenttheme/wporg-theme-storefront/style.css | 6 ------ 31 files changed, 71 insertions(+), 66 deletions(-) rename _tests/activation/childtheme/{wporg-theme-storefront => bistro}/functions.php (100%) create mode 100644 _tests/activation/childtheme/bistro/style.css delete mode 100644 _tests/activation/childtheme/wporg-theme-storefront/style.css rename _tests/activation/parenttheme/{wporg-theme-storefront => bistro}/functions.php (100%) rename _tests/activation/parenttheme/{wporg-theme-storefront => bistro}/index.php (100%) create mode 100644 _tests/activation/parenttheme/bistro/style.css delete mode 100644 _tests/activation/parenttheme/wporg-theme-storefront/style.css create mode 100644 _tests/api/childtheme/bistro/style.css delete mode 100644 _tests/api/childtheme/wporg-theme-storefront/style.css rename _tests/api/parenttheme/{wporg-theme-storefront => bistro}/index.php (100%) create mode 100644 _tests/api/parenttheme/bistro/style.css delete mode 100644 _tests/api/parenttheme/wporg-theme-storefront/style.css rename _tests/phpcompatibility/childtheme/{wporg-theme-storefront => bistro}/front-page.php (100%) create mode 100644 _tests/phpcompatibility/childtheme/bistro/style.css delete mode 100644 _tests/phpcompatibility/childtheme/wporg-theme-storefront/style.css rename _tests/phpcompatibility/parenttheme/{wporg-theme-storefront => bistro}/index.php (100%) create mode 100644 _tests/phpcompatibility/parenttheme/bistro/style.css delete mode 100644 _tests/phpcompatibility/parenttheme/wporg-theme-storefront/style.css rename _tests/phpstan/childtheme/{wporg-theme-storefront => bistro}/index.php (100%) create mode 100644 _tests/phpstan/childtheme/bistro/style.css delete mode 100644 _tests/phpstan/childtheme/wporg-theme-storefront/style.css rename _tests/phpstan/parenttheme/{wporg-theme-storefront => bistro}/index.php (100%) create mode 100644 _tests/phpstan/parenttheme/bistro/style.css delete mode 100644 _tests/phpstan/parenttheme/wporg-theme-storefront/style.css rename _tests/security/childtheme/{wporg-theme-storefront => bistro}/functions.php (100%) create mode 100644 _tests/security/childtheme/bistro/style.css delete mode 100644 _tests/security/childtheme/wporg-theme-storefront/style.css rename _tests/security/parenttheme/{wporg-theme-storefront => bistro}/index.php (100%) create mode 100644 _tests/security/parenttheme/bistro/style.css delete mode 100644 _tests/security/parenttheme/wporg-theme-storefront/style.css diff --git a/_tests/QITSelfTests.php b/_tests/QITSelfTests.php index d7ece482..98c39957 100644 --- a/_tests/QITSelfTests.php +++ b/_tests/QITSelfTests.php @@ -25,7 +25,7 @@ class Context { * We use the extension "woocommerce-product-feeds" and theme "storefront", because they're owned by the test user in Staging. */ public static $extension_slug = 'woocommerce-product-feeds'; - public static $theme_slug = 'wporg-theme-storefront'; + public static $theme_slug = 'bistro'; } Context::$action = $GLOBALS['argv'][1] ?? 'run'; diff --git a/_tests/activation/childtheme/wporg-theme-storefront/functions.php b/_tests/activation/childtheme/bistro/functions.php similarity index 100% rename from _tests/activation/childtheme/wporg-theme-storefront/functions.php rename to _tests/activation/childtheme/bistro/functions.php diff --git a/_tests/activation/childtheme/bistro/style.css b/_tests/activation/childtheme/bistro/style.css new file mode 100644 index 00000000..c0505e46 --- /dev/null +++ b/_tests/activation/childtheme/bistro/style.css @@ -0,0 +1,7 @@ +/* +Theme Name: Bistro +Theme URI: https://www.woocommerce.com/products/bistro/ +Description: A storefront child theme for fresh goods and organic food stores. +Template: storefront +Version: 1.0.15 +*/ \ No newline at end of file diff --git a/_tests/activation/childtheme/wporg-theme-storefront/style.css b/_tests/activation/childtheme/wporg-theme-storefront/style.css deleted file mode 100644 index 52720f44..00000000 --- a/_tests/activation/childtheme/wporg-theme-storefront/style.css +++ /dev/null @@ -1,7 +0,0 @@ -/* -Theme Name: Storefront -Theme URI: https://woocommerce.com/products/storefront/ -Description: Storefront Theme. -Template: twentytwentyfour -Version: 1.0.0 -*/ diff --git a/_tests/activation/parenttheme/wporg-theme-storefront/functions.php b/_tests/activation/parenttheme/bistro/functions.php similarity index 100% rename from _tests/activation/parenttheme/wporg-theme-storefront/functions.php rename to _tests/activation/parenttheme/bistro/functions.php diff --git a/_tests/activation/parenttheme/wporg-theme-storefront/index.php b/_tests/activation/parenttheme/bistro/index.php similarity index 100% rename from _tests/activation/parenttheme/wporg-theme-storefront/index.php rename to _tests/activation/parenttheme/bistro/index.php diff --git a/_tests/activation/parenttheme/bistro/style.css b/_tests/activation/parenttheme/bistro/style.css new file mode 100644 index 00000000..c0505e46 --- /dev/null +++ b/_tests/activation/parenttheme/bistro/style.css @@ -0,0 +1,7 @@ +/* +Theme Name: Bistro +Theme URI: https://www.woocommerce.com/products/bistro/ +Description: A storefront child theme for fresh goods and organic food stores. +Template: storefront +Version: 1.0.15 +*/ \ No newline at end of file diff --git a/_tests/activation/parenttheme/wporg-theme-storefront/style.css b/_tests/activation/parenttheme/wporg-theme-storefront/style.css deleted file mode 100644 index a361310b..00000000 --- a/_tests/activation/parenttheme/wporg-theme-storefront/style.css +++ /dev/null @@ -1,6 +0,0 @@ -/* -Theme Name: Storefront -Theme URI: https://woocommerce.com/products/storefront/ -Description: Storefront Theme. -Version: 1.0.0 -*/ diff --git a/_tests/api/childtheme/bistro/style.css b/_tests/api/childtheme/bistro/style.css new file mode 100644 index 00000000..c0505e46 --- /dev/null +++ b/_tests/api/childtheme/bistro/style.css @@ -0,0 +1,7 @@ +/* +Theme Name: Bistro +Theme URI: https://www.woocommerce.com/products/bistro/ +Description: A storefront child theme for fresh goods and organic food stores. +Template: storefront +Version: 1.0.15 +*/ \ No newline at end of file diff --git a/_tests/api/childtheme/wporg-theme-storefront/style.css b/_tests/api/childtheme/wporg-theme-storefront/style.css deleted file mode 100644 index 52720f44..00000000 --- a/_tests/api/childtheme/wporg-theme-storefront/style.css +++ /dev/null @@ -1,7 +0,0 @@ -/* -Theme Name: Storefront -Theme URI: https://woocommerce.com/products/storefront/ -Description: Storefront Theme. -Template: twentytwentyfour -Version: 1.0.0 -*/ diff --git a/_tests/api/parenttheme/wporg-theme-storefront/index.php b/_tests/api/parenttheme/bistro/index.php similarity index 100% rename from _tests/api/parenttheme/wporg-theme-storefront/index.php rename to _tests/api/parenttheme/bistro/index.php diff --git a/_tests/api/parenttheme/bistro/style.css b/_tests/api/parenttheme/bistro/style.css new file mode 100644 index 00000000..c0505e46 --- /dev/null +++ b/_tests/api/parenttheme/bistro/style.css @@ -0,0 +1,7 @@ +/* +Theme Name: Bistro +Theme URI: https://www.woocommerce.com/products/bistro/ +Description: A storefront child theme for fresh goods and organic food stores. +Template: storefront +Version: 1.0.15 +*/ \ No newline at end of file diff --git a/_tests/api/parenttheme/wporg-theme-storefront/style.css b/_tests/api/parenttheme/wporg-theme-storefront/style.css deleted file mode 100644 index a361310b..00000000 --- a/_tests/api/parenttheme/wporg-theme-storefront/style.css +++ /dev/null @@ -1,6 +0,0 @@ -/* -Theme Name: Storefront -Theme URI: https://woocommerce.com/products/storefront/ -Description: Storefront Theme. -Version: 1.0.0 -*/ diff --git a/_tests/phpcompatibility/childtheme/wporg-theme-storefront/front-page.php b/_tests/phpcompatibility/childtheme/bistro/front-page.php similarity index 100% rename from _tests/phpcompatibility/childtheme/wporg-theme-storefront/front-page.php rename to _tests/phpcompatibility/childtheme/bistro/front-page.php diff --git a/_tests/phpcompatibility/childtheme/bistro/style.css b/_tests/phpcompatibility/childtheme/bistro/style.css new file mode 100644 index 00000000..c0505e46 --- /dev/null +++ b/_tests/phpcompatibility/childtheme/bistro/style.css @@ -0,0 +1,7 @@ +/* +Theme Name: Bistro +Theme URI: https://www.woocommerce.com/products/bistro/ +Description: A storefront child theme for fresh goods and organic food stores. +Template: storefront +Version: 1.0.15 +*/ \ No newline at end of file diff --git a/_tests/phpcompatibility/childtheme/wporg-theme-storefront/style.css b/_tests/phpcompatibility/childtheme/wporg-theme-storefront/style.css deleted file mode 100644 index 52720f44..00000000 --- a/_tests/phpcompatibility/childtheme/wporg-theme-storefront/style.css +++ /dev/null @@ -1,7 +0,0 @@ -/* -Theme Name: Storefront -Theme URI: https://woocommerce.com/products/storefront/ -Description: Storefront Theme. -Template: twentytwentyfour -Version: 1.0.0 -*/ diff --git a/_tests/phpcompatibility/parenttheme/wporg-theme-storefront/index.php b/_tests/phpcompatibility/parenttheme/bistro/index.php similarity index 100% rename from _tests/phpcompatibility/parenttheme/wporg-theme-storefront/index.php rename to _tests/phpcompatibility/parenttheme/bistro/index.php diff --git a/_tests/phpcompatibility/parenttheme/bistro/style.css b/_tests/phpcompatibility/parenttheme/bistro/style.css new file mode 100644 index 00000000..c0505e46 --- /dev/null +++ b/_tests/phpcompatibility/parenttheme/bistro/style.css @@ -0,0 +1,7 @@ +/* +Theme Name: Bistro +Theme URI: https://www.woocommerce.com/products/bistro/ +Description: A storefront child theme for fresh goods and organic food stores. +Template: storefront +Version: 1.0.15 +*/ \ No newline at end of file diff --git a/_tests/phpcompatibility/parenttheme/wporg-theme-storefront/style.css b/_tests/phpcompatibility/parenttheme/wporg-theme-storefront/style.css deleted file mode 100644 index a361310b..00000000 --- a/_tests/phpcompatibility/parenttheme/wporg-theme-storefront/style.css +++ /dev/null @@ -1,6 +0,0 @@ -/* -Theme Name: Storefront -Theme URI: https://woocommerce.com/products/storefront/ -Description: Storefront Theme. -Version: 1.0.0 -*/ diff --git a/_tests/phpstan/childtheme/wporg-theme-storefront/index.php b/_tests/phpstan/childtheme/bistro/index.php similarity index 100% rename from _tests/phpstan/childtheme/wporg-theme-storefront/index.php rename to _tests/phpstan/childtheme/bistro/index.php diff --git a/_tests/phpstan/childtheme/bistro/style.css b/_tests/phpstan/childtheme/bistro/style.css new file mode 100644 index 00000000..c0505e46 --- /dev/null +++ b/_tests/phpstan/childtheme/bistro/style.css @@ -0,0 +1,7 @@ +/* +Theme Name: Bistro +Theme URI: https://www.woocommerce.com/products/bistro/ +Description: A storefront child theme for fresh goods and organic food stores. +Template: storefront +Version: 1.0.15 +*/ \ No newline at end of file diff --git a/_tests/phpstan/childtheme/wporg-theme-storefront/style.css b/_tests/phpstan/childtheme/wporg-theme-storefront/style.css deleted file mode 100644 index 52720f44..00000000 --- a/_tests/phpstan/childtheme/wporg-theme-storefront/style.css +++ /dev/null @@ -1,7 +0,0 @@ -/* -Theme Name: Storefront -Theme URI: https://woocommerce.com/products/storefront/ -Description: Storefront Theme. -Template: twentytwentyfour -Version: 1.0.0 -*/ diff --git a/_tests/phpstan/parenttheme/wporg-theme-storefront/index.php b/_tests/phpstan/parenttheme/bistro/index.php similarity index 100% rename from _tests/phpstan/parenttheme/wporg-theme-storefront/index.php rename to _tests/phpstan/parenttheme/bistro/index.php diff --git a/_tests/phpstan/parenttheme/bistro/style.css b/_tests/phpstan/parenttheme/bistro/style.css new file mode 100644 index 00000000..c0505e46 --- /dev/null +++ b/_tests/phpstan/parenttheme/bistro/style.css @@ -0,0 +1,7 @@ +/* +Theme Name: Bistro +Theme URI: https://www.woocommerce.com/products/bistro/ +Description: A storefront child theme for fresh goods and organic food stores. +Template: storefront +Version: 1.0.15 +*/ \ No newline at end of file diff --git a/_tests/phpstan/parenttheme/wporg-theme-storefront/style.css b/_tests/phpstan/parenttheme/wporg-theme-storefront/style.css deleted file mode 100644 index a361310b..00000000 --- a/_tests/phpstan/parenttheme/wporg-theme-storefront/style.css +++ /dev/null @@ -1,6 +0,0 @@ -/* -Theme Name: Storefront -Theme URI: https://woocommerce.com/products/storefront/ -Description: Storefront Theme. -Version: 1.0.0 -*/ diff --git a/_tests/security/childtheme/wporg-theme-storefront/functions.php b/_tests/security/childtheme/bistro/functions.php similarity index 100% rename from _tests/security/childtheme/wporg-theme-storefront/functions.php rename to _tests/security/childtheme/bistro/functions.php diff --git a/_tests/security/childtheme/bistro/style.css b/_tests/security/childtheme/bistro/style.css new file mode 100644 index 00000000..c0505e46 --- /dev/null +++ b/_tests/security/childtheme/bistro/style.css @@ -0,0 +1,7 @@ +/* +Theme Name: Bistro +Theme URI: https://www.woocommerce.com/products/bistro/ +Description: A storefront child theme for fresh goods and organic food stores. +Template: storefront +Version: 1.0.15 +*/ \ No newline at end of file diff --git a/_tests/security/childtheme/wporg-theme-storefront/style.css b/_tests/security/childtheme/wporg-theme-storefront/style.css deleted file mode 100644 index 52720f44..00000000 --- a/_tests/security/childtheme/wporg-theme-storefront/style.css +++ /dev/null @@ -1,7 +0,0 @@ -/* -Theme Name: Storefront -Theme URI: https://woocommerce.com/products/storefront/ -Description: Storefront Theme. -Template: twentytwentyfour -Version: 1.0.0 -*/ diff --git a/_tests/security/parenttheme/wporg-theme-storefront/index.php b/_tests/security/parenttheme/bistro/index.php similarity index 100% rename from _tests/security/parenttheme/wporg-theme-storefront/index.php rename to _tests/security/parenttheme/bistro/index.php diff --git a/_tests/security/parenttheme/bistro/style.css b/_tests/security/parenttheme/bistro/style.css new file mode 100644 index 00000000..c0505e46 --- /dev/null +++ b/_tests/security/parenttheme/bistro/style.css @@ -0,0 +1,7 @@ +/* +Theme Name: Bistro +Theme URI: https://www.woocommerce.com/products/bistro/ +Description: A storefront child theme for fresh goods and organic food stores. +Template: storefront +Version: 1.0.15 +*/ \ No newline at end of file diff --git a/_tests/security/parenttheme/wporg-theme-storefront/style.css b/_tests/security/parenttheme/wporg-theme-storefront/style.css deleted file mode 100644 index a361310b..00000000 --- a/_tests/security/parenttheme/wporg-theme-storefront/style.css +++ /dev/null @@ -1,6 +0,0 @@ -/* -Theme Name: Storefront -Theme URI: https://woocommerce.com/products/storefront/ -Description: Storefront Theme. -Version: 1.0.0 -*/ From d68deeeb8ae6195ba464a2dd85ec76334e1ff038 Mon Sep 17 00:00:00 2001 From: Lucas Bustamante Date: Tue, 19 Dec 2023 20:26:07 -0300 Subject: [PATCH 2/2] Update self-tests --- ...est_activation_childtheme_stable_82__1.php | 30 +++++++++---------- ...st_activation_parenttheme_stable_82__1.php | 30 +++++++++---------- ...Test__test_api_childtheme_stable_82__1.php | 26 ++++++++-------- ...est__test_api_parenttheme_stable_82__1.php | 8 ++--- ...wareTest__test_malware_violations____1.php | 15 ++++++---- ..._test_phpcompatibility_childtheme____1.php | 8 ++--- ...test_phpcompatibility_parenttheme____1.php | 8 ++--- ...stanTest__test_phpstan_childtheme____1.php | 10 +++---- ...tanTest__test_phpstan_parenttheme____1.php | 8 ++--- ...ityTest__test_security_childtheme____1.php | 12 ++++---- ...tyTest__test_security_parenttheme____1.php | 12 ++++---- 11 files changed, 85 insertions(+), 82 deletions(-) diff --git a/_tests/tests/__snapshots__/ActivationTest__test_activation_childtheme_stable_82__1.php b/_tests/tests/__snapshots__/ActivationTest__test_activation_childtheme_stable_82__1.php index 2f8909b9..e8a49453 100644 --- a/_tests/tests/__snapshots__/ActivationTest__test_activation_childtheme_stable_82__1.php +++ b/_tests/tests/__snapshots__/ActivationTest__test_activation_childtheme_stable_82__1.php @@ -17,9 +17,9 @@ "is_development": true, "send_notifications": false, "woo_extension": { - "id": 565154, - "host": "wporg", - "name": "Storefront", + "id": 1822936, + "host": "wccom", + "name": "Bistro", "type": "theme" }, "client": "qit_cli", @@ -32,7 +32,7 @@ "test_results_manager_expiration": 1234567890, "test_summary": "6 Errors Detected. (1 Fatal, 2 Warnings, 3 Notices)", "debug_log": "", - "version": "1.0.0", + "version": "1.0.15", "update_complete": true, "ai_suggestion_status": "none", "malware_whitelist_paths": [], @@ -67,11 +67,11 @@ "is_fatal": "No", "error_type": "E_USER_NOTICE", "error_message": "Notice on all requests - Child theme", - "error_file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/wporg-theme-storefront\\/functions.php", + "error_file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/bistro\\/functions.php", "error_line": 12, "backtrace": [ { - "file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/wporg-theme-storefront\\/functions.php", + "file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/bistro\\/functions.php", "line": 12, "function": "trigger_error" }, @@ -124,11 +124,11 @@ "is_fatal": "No", "error_type": "E_USER_WARNING", "error_message": "Warning on all requests - Child theme", - "error_file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/wporg-theme-storefront\\/functions.php", + "error_file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/bistro\\/functions.php", "error_line": 8, "backtrace": [ { - "file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/wporg-theme-storefront\\/functions.php", + "file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/bistro\\/functions.php", "line": 8, "function": "trigger_error" }, @@ -177,11 +177,11 @@ "is_fatal": "No", "error_type": "E_USER_NOTICE", "error_message": "Notice on all requests - Child theme", - "error_file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/wporg-theme-storefront\\/functions.php", + "error_file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/bistro\\/functions.php", "error_line": 12, "backtrace": [ { - "file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/wporg-theme-storefront\\/functions.php", + "file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/bistro\\/functions.php", "line": 12, "function": "trigger_error" }, @@ -234,7 +234,7 @@ "is_fatal": "Yes", "error_type": "E_ERROR", "error_message": "Call to undefined function call_to_undefined_function()", - "error_file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/wporg-theme-storefront\\/functions.php", + "error_file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/bistro\\/functions.php", "error_line": 5, "backtrace": [ { @@ -249,11 +249,11 @@ "is_fatal": "No", "error_type": "E_USER_NOTICE", "error_message": "Notice on all requests - Child theme", - "error_file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/wporg-theme-storefront\\/functions.php", + "error_file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/bistro\\/functions.php", "error_line": 12, "backtrace": [ { - "file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/wporg-theme-storefront\\/functions.php", + "file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/bistro\\/functions.php", "line": 12, "function": "trigger_error" }, @@ -306,11 +306,11 @@ "is_fatal": "No", "error_type": "E_USER_WARNING", "error_message": "Warning on all requests - Child theme", - "error_file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/wporg-theme-storefront\\/functions.php", + "error_file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/bistro\\/functions.php", "error_line": 8, "backtrace": [ { - "file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/wporg-theme-storefront\\/functions.php", + "file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/bistro\\/functions.php", "line": 8, "function": "trigger_error" }, diff --git a/_tests/tests/__snapshots__/ActivationTest__test_activation_parenttheme_stable_82__1.php b/_tests/tests/__snapshots__/ActivationTest__test_activation_parenttheme_stable_82__1.php index 03cb5004..b48ace57 100644 --- a/_tests/tests/__snapshots__/ActivationTest__test_activation_parenttheme_stable_82__1.php +++ b/_tests/tests/__snapshots__/ActivationTest__test_activation_parenttheme_stable_82__1.php @@ -17,9 +17,9 @@ "is_development": true, "send_notifications": false, "woo_extension": { - "id": 565154, - "host": "wporg", - "name": "Storefront", + "id": 1822936, + "host": "wccom", + "name": "Bistro", "type": "theme" }, "client": "qit_cli", @@ -32,7 +32,7 @@ "test_results_manager_expiration": 1234567890, "test_summary": "6 Errors Detected. (1 Fatal, 2 Warnings, 3 Notices)", "debug_log": "", - "version": "1.0.0", + "version": "1.0.15", "update_complete": true, "ai_suggestion_status": "none", "malware_whitelist_paths": [], @@ -67,11 +67,11 @@ "is_fatal": "No", "error_type": "E_USER_NOTICE", "error_message": "Notice on all requests - Parent Theme", - "error_file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/wporg-theme-storefront\\/functions.php", + "error_file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/bistro\\/functions.php", "error_line": 12, "backtrace": [ { - "file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/wporg-theme-storefront\\/functions.php", + "file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/bistro\\/functions.php", "line": 12, "function": "trigger_error" }, @@ -124,11 +124,11 @@ "is_fatal": "No", "error_type": "E_USER_WARNING", "error_message": "Warning on all requests - Parent Theme", - "error_file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/wporg-theme-storefront\\/functions.php", + "error_file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/bistro\\/functions.php", "error_line": 8, "backtrace": [ { - "file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/wporg-theme-storefront\\/functions.php", + "file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/bistro\\/functions.php", "line": 8, "function": "trigger_error" }, @@ -177,11 +177,11 @@ "is_fatal": "No", "error_type": "E_USER_NOTICE", "error_message": "Notice on all requests - Parent Theme", - "error_file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/wporg-theme-storefront\\/functions.php", + "error_file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/bistro\\/functions.php", "error_line": 12, "backtrace": [ { - "file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/wporg-theme-storefront\\/functions.php", + "file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/bistro\\/functions.php", "line": 12, "function": "trigger_error" }, @@ -234,7 +234,7 @@ "is_fatal": "Yes", "error_type": "E_ERROR", "error_message": "Call to undefined function call_to_undefined_function()", - "error_file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/wporg-theme-storefront\\/functions.php", + "error_file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/bistro\\/functions.php", "error_line": 5, "backtrace": [ { @@ -249,11 +249,11 @@ "is_fatal": "No", "error_type": "E_USER_NOTICE", "error_message": "Notice on all requests - Parent Theme", - "error_file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/wporg-theme-storefront\\/functions.php", + "error_file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/bistro\\/functions.php", "error_line": 12, "backtrace": [ { - "file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/wporg-theme-storefront\\/functions.php", + "file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/bistro\\/functions.php", "line": 12, "function": "trigger_error" }, @@ -306,11 +306,11 @@ "is_fatal": "No", "error_type": "E_USER_WARNING", "error_message": "Warning on all requests - Parent Theme", - "error_file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/wporg-theme-storefront\\/functions.php", + "error_file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/bistro\\/functions.php", "error_line": 8, "backtrace": [ { - "file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/wporg-theme-storefront\\/functions.php", + "file": "\\/var\\/www\\/html\\/wp-content\\/themes\\/bistro\\/functions.php", "line": 8, "function": "trigger_error" }, diff --git a/_tests/tests/__snapshots__/ApiTest__test_api_childtheme_stable_82__1.php b/_tests/tests/__snapshots__/ApiTest__test_api_childtheme_stable_82__1.php index cf05aad7..25d17400 100644 --- a/_tests/tests/__snapshots__/ApiTest__test_api_childtheme_stable_82__1.php +++ b/_tests/tests/__snapshots__/ApiTest__test_api_childtheme_stable_82__1.php @@ -11,15 +11,15 @@ "additional_woo_plugins": [], "additional_wp_plugins": [], "test_log": "", - "status": "failed", + "status": "success", "test_result_aws_url": "https:\\/\\/test-results-aws.com", "test_result_aws_expiration": 1234567890, "is_development": true, "send_notifications": false, "woo_extension": { - "id": 565154, - "host": "wporg", - "name": "Storefront", + "id": 1822936, + "host": "wccom", + "name": "Bistro", "type": "theme" }, "client": "qit_cli", @@ -30,8 +30,8 @@ }, "test_results_manager_url": "https:\\/\\/test-results-manager.com", "test_results_manager_expiration": 1234567890, - "test_summary": "Test Suites: 0 skipped, 1 failed, 19 passed, 20 total | Tests: 2 skipped, 1 failed, 254 passed, 257 total.", - "version": "1.0.0", + "test_summary": "Test Suites: 0 skipped, 0 failed, 20 passed, 20 total | Tests: 2 skipped, 0 failed, 255 passed, 257 total.", + "version": "1.0.15", "update_complete": true, "ai_suggestion_status": "none", "malware_whitelist_paths": [], @@ -40,12 +40,12 @@ }, { "test_result_json": { - "numFailedTestSuites": 1, - "numPassedTestSuites": 19, + "numFailedTestSuites": 0, + "numPassedTestSuites": 20, "numPendingTestSuites": 0, "numTotalTestSuites": 20, - "numFailedTests": 1, - "numPassedTests": 254, + "numFailedTests": 0, + "numPassedTests": 255, "numPendingTests": 2, "numTotalTests": 257, "testResults": [ @@ -525,13 +525,13 @@ }, { "file": "payment-gateways\\/payment-gateways-crud.test.js", - "status": "failed", + "status": "passed", "has_pending": false, "tests": { "Payment Gateways API tests": [ { "title": "can view all payment gateways", - "status": "failed" + "status": "passed" }, { "title": "can view a payment gateway", @@ -1375,7 +1375,7 @@ } } ], - "summary": "Test Suites: 0 skipped, 1 failed, 19 passed, 20 total | Tests: 2 skipped, 1 failed, 254 passed, 257 total." + "summary": "Test Suites: 0 skipped, 0 failed, 20 passed, 20 total | Tests: 2 skipped, 0 failed, 255 passed, 257 total." } }, { diff --git a/_tests/tests/__snapshots__/ApiTest__test_api_parenttheme_stable_82__1.php b/_tests/tests/__snapshots__/ApiTest__test_api_parenttheme_stable_82__1.php index 4923bbea..25d17400 100644 --- a/_tests/tests/__snapshots__/ApiTest__test_api_parenttheme_stable_82__1.php +++ b/_tests/tests/__snapshots__/ApiTest__test_api_parenttheme_stable_82__1.php @@ -17,9 +17,9 @@ "is_development": true, "send_notifications": false, "woo_extension": { - "id": 565154, - "host": "wporg", - "name": "Storefront", + "id": 1822936, + "host": "wccom", + "name": "Bistro", "type": "theme" }, "client": "qit_cli", @@ -31,7 +31,7 @@ "test_results_manager_url": "https:\\/\\/test-results-manager.com", "test_results_manager_expiration": 1234567890, "test_summary": "Test Suites: 0 skipped, 0 failed, 20 passed, 20 total | Tests: 2 skipped, 0 failed, 255 passed, 257 total.", - "version": "1.0.0", + "version": "1.0.15", "update_complete": true, "ai_suggestion_status": "none", "malware_whitelist_paths": [], diff --git a/_tests/tests/__snapshots__/MalwareTest__test_malware_violations____1.php b/_tests/tests/__snapshots__/MalwareTest__test_malware_violations____1.php index 416046cf..324dae91 100644 --- a/_tests/tests/__snapshots__/MalwareTest__test_malware_violations____1.php +++ b/_tests/tests/__snapshots__/MalwareTest__test_malware_violations____1.php @@ -40,26 +40,29 @@ }, { "test_result_json": { - "7675933a630ca5bec67fd3fc3e8a9c65": { + "40deb1f8399f2a6e0fa6fdf23ae73271": { "path": "woocommerce-product-feeds\\/woocommerce-product-feeds.php", "rule": "PasswordProtection", "violations": [ "md5($_POST[\'password\']) === \'d41d8cd98f00b204e9800998ecf8427e\'" - ] + ], + "tool": "Malware Scanner" }, - "608a89370e0370356d0b8e746e6171c9": { + "e8f21b2fe40507b42452d4e54a16aa6b": { "path": "woocommerce-product-feeds\\/woocommerce-product-feeds.php", "rule": "DodgyPhp", "violations": [ "SetHandler application\\/x-httpd-php" - ] + ], + "tool": "Malware Scanner" }, - "20f1a0a37856f7ab39c92be4fe1d6cfc": { + "1782e2579de23d5ccaa40e339ca9d477": { "path": "woocommerce-product-feeds\\/woocommerce-product-feeds.php", "rule": "DodgyStrings", "violations": [ ".bash_history" - ] + ], + "tool": "Malware Scanner" } } } diff --git a/_tests/tests/__snapshots__/PhpcompatibilityTest__test_phpcompatibility_childtheme____1.php b/_tests/tests/__snapshots__/PhpcompatibilityTest__test_phpcompatibility_childtheme____1.php index 8f3e8946..e77fa2bf 100644 --- a/_tests/tests/__snapshots__/PhpcompatibilityTest__test_phpcompatibility_childtheme____1.php +++ b/_tests/tests/__snapshots__/PhpcompatibilityTest__test_phpcompatibility_childtheme____1.php @@ -17,9 +17,9 @@ "is_development": true, "send_notifications": false, "woo_extension": { - "id": 565154, - "host": "wporg", - "name": "Storefront", + "id": 1822936, + "host": "wccom", + "name": "Bistro", "type": "theme" }, "client": "qit_cli", @@ -48,7 +48,7 @@ "fixable": 1 }, "files": { - "\\/home\\/runner\\/work\\/qit-runner\\/qit-runner\\/ci\\/themes\\/wporg-theme-storefront\\/front-page.php": { + "\\/home\\/runner\\/work\\/qit-runner\\/qit-runner\\/ci\\/themes\\/bistro\\/front-page.php": { "errors": 12, "warnings": 3, "messages": [ diff --git a/_tests/tests/__snapshots__/PhpcompatibilityTest__test_phpcompatibility_parenttheme____1.php b/_tests/tests/__snapshots__/PhpcompatibilityTest__test_phpcompatibility_parenttheme____1.php index 0da992f6..aa073fff 100644 --- a/_tests/tests/__snapshots__/PhpcompatibilityTest__test_phpcompatibility_parenttheme____1.php +++ b/_tests/tests/__snapshots__/PhpcompatibilityTest__test_phpcompatibility_parenttheme____1.php @@ -17,9 +17,9 @@ "is_development": true, "send_notifications": false, "woo_extension": { - "id": 565154, - "host": "wporg", - "name": "Storefront", + "id": 1822936, + "host": "wccom", + "name": "Bistro", "type": "theme" }, "client": "qit_cli", @@ -48,7 +48,7 @@ "fixable": 0 }, "files": { - "\\/home\\/runner\\/work\\/qit-runner\\/qit-runner\\/ci\\/themes\\/wporg-theme-storefront\\/index.php": { + "\\/home\\/runner\\/work\\/qit-runner\\/qit-runner\\/ci\\/themes\\/bistro\\/index.php": { "errors": 0, "warnings": 0, "messages": [] diff --git a/_tests/tests/__snapshots__/PhpstanTest__test_phpstan_childtheme____1.php b/_tests/tests/__snapshots__/PhpstanTest__test_phpstan_childtheme____1.php index 951a5a8f..8362f8cc 100644 --- a/_tests/tests/__snapshots__/PhpstanTest__test_phpstan_childtheme____1.php +++ b/_tests/tests/__snapshots__/PhpstanTest__test_phpstan_childtheme____1.php @@ -17,9 +17,9 @@ "is_development": true, "send_notifications": false, "woo_extension": { - "id": 565154, - "host": "wporg", - "name": "Storefront", + "id": 1822936, + "host": "wccom", + "name": "Bistro", "type": "theme" }, "client": "qit_cli", @@ -32,7 +32,7 @@ "test_results_manager_expiration": 1234567890, "test_summary": "Errors: 0, File Errors: 2", "debug_log": "", - "version": "1.0.0", + "version": "1.0.15", "update_complete": true, "ai_suggestion_status": "none", "malware_whitelist_paths": [], @@ -45,7 +45,7 @@ "file_errors": 2 }, "files": { - "\\/home\\/runner\\/work\\/qit-runner\\/qit-runner\\/ci\\/themes\\/wporg-theme-storefront\\/index.php": { + "\\/home\\/runner\\/work\\/qit-runner\\/qit-runner\\/ci\\/themes\\/bistro\\/index.php": { "errors": 2, "messages": [ { diff --git a/_tests/tests/__snapshots__/PhpstanTest__test_phpstan_parenttheme____1.php b/_tests/tests/__snapshots__/PhpstanTest__test_phpstan_parenttheme____1.php index cb16026c..e8a2538e 100644 --- a/_tests/tests/__snapshots__/PhpstanTest__test_phpstan_parenttheme____1.php +++ b/_tests/tests/__snapshots__/PhpstanTest__test_phpstan_parenttheme____1.php @@ -17,9 +17,9 @@ "is_development": true, "send_notifications": false, "woo_extension": { - "id": 565154, - "host": "wporg", - "name": "Storefront", + "id": 1822936, + "host": "wccom", + "name": "Bistro", "type": "theme" }, "client": "qit_cli", @@ -32,7 +32,7 @@ "test_results_manager_expiration": 1234567890, "test_summary": "Errors: 0, File Errors: 0", "debug_log": "", - "version": "1.0.0", + "version": "1.0.15", "update_complete": true, "ai_suggestion_status": "none", "malware_whitelist_paths": [], diff --git a/_tests/tests/__snapshots__/SecurityTest__test_security_childtheme____1.php b/_tests/tests/__snapshots__/SecurityTest__test_security_childtheme____1.php index 9da558f8..1a1bd7e9 100644 --- a/_tests/tests/__snapshots__/SecurityTest__test_security_childtheme____1.php +++ b/_tests/tests/__snapshots__/SecurityTest__test_security_childtheme____1.php @@ -17,9 +17,9 @@ "is_development": true, "send_notifications": false, "woo_extension": { - "id": 565154, - "host": "wporg", - "name": "Storefront", + "id": 1822936, + "host": "wccom", + "name": "Bistro", "type": "theme" }, "client": "qit_cli", @@ -32,7 +32,7 @@ "test_results_manager_expiration": 1234567890, "test_summary": "Errors: 4 Warnings: 3", "debug_log": "", - "version": "1.0.0", + "version": "1.0.15", "update_complete": true, "ai_suggestion_status": "none", "malware_whitelist_paths": [], @@ -48,7 +48,7 @@ "fixable": 0 }, "files": { - "\\/home\\/runner\\/work\\/qit-runner\\/qit-runner\\/ci\\/themes\\/wporg-theme-storefront\\/functions.php": { + "\\/home\\/runner\\/work\\/qit-runner\\/qit-runner\\/ci\\/themes\\/bistro\\/functions.php": { "errors": 2, "warnings": 3, "messages": [ @@ -113,7 +113,7 @@ "fixable": 0 }, "files": { - "\\/wporg-theme-storefront\\/functions.php": { + "\\/bistro\\/functions.php": { "errors": 2, "warnings": 0, "messages": [ diff --git a/_tests/tests/__snapshots__/SecurityTest__test_security_parenttheme____1.php b/_tests/tests/__snapshots__/SecurityTest__test_security_parenttheme____1.php index a50452bd..cf9ee2fb 100644 --- a/_tests/tests/__snapshots__/SecurityTest__test_security_parenttheme____1.php +++ b/_tests/tests/__snapshots__/SecurityTest__test_security_parenttheme____1.php @@ -17,9 +17,9 @@ "is_development": true, "send_notifications": false, "woo_extension": { - "id": 565154, - "host": "wporg", - "name": "Storefront", + "id": 1822936, + "host": "wccom", + "name": "Bistro", "type": "theme" }, "client": "qit_cli", @@ -32,7 +32,7 @@ "test_results_manager_expiration": 1234567890, "test_summary": "Errors: 0 Warnings: 0", "debug_log": "", - "version": "1.0.0", + "version": "1.0.15", "update_complete": true, "ai_suggestion_status": "none", "malware_whitelist_paths": [], @@ -48,7 +48,7 @@ "fixable": 0 }, "files": { - "\\/home\\/runner\\/work\\/qit-runner\\/qit-runner\\/ci\\/themes\\/wporg-theme-storefront\\/index.php": { + "\\/home\\/runner\\/work\\/qit-runner\\/qit-runner\\/ci\\/themes\\/bistro\\/index.php": { "errors": 0, "warnings": 0, "messages": [] @@ -62,7 +62,7 @@ "fixable": 0 }, "files": { - "\\/wporg-theme-storefront\\/index.php": { + "\\/bistro\\/index.php": { "errors": 0, "warnings": 0, "messages": []