Skip to content

Commit

Permalink
Merge pull request #100 from woocommerce/23-12/self-tests
Browse files Browse the repository at this point in the history
Update self-tests
  • Loading branch information
Luc45 authored Dec 19, 2023
2 parents 0f70017 + d68deee commit 758ab1c
Show file tree
Hide file tree
Showing 42 changed files with 156 additions and 148 deletions.
2 changes: 1 addition & 1 deletion _tests/QITSelfTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
7 changes: 7 additions & 0 deletions _tests/activation/childtheme/bistro/style.css
Original file line number Diff line number Diff line change
@@ -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
*/
7 changes: 0 additions & 7 deletions _tests/activation/childtheme/wporg-theme-storefront/style.css

This file was deleted.

7 changes: 7 additions & 0 deletions _tests/activation/parenttheme/bistro/style.css
Original file line number Diff line number Diff line change
@@ -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
*/

This file was deleted.

7 changes: 7 additions & 0 deletions _tests/api/childtheme/bistro/style.css
Original file line number Diff line number Diff line change
@@ -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
*/
7 changes: 0 additions & 7 deletions _tests/api/childtheme/wporg-theme-storefront/style.css

This file was deleted.

File renamed without changes.
7 changes: 7 additions & 0 deletions _tests/api/parenttheme/bistro/style.css
Original file line number Diff line number Diff line change
@@ -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
*/
6 changes: 0 additions & 6 deletions _tests/api/parenttheme/wporg-theme-storefront/style.css

This file was deleted.

7 changes: 7 additions & 0 deletions _tests/phpcompatibility/childtheme/bistro/style.css
Original file line number Diff line number Diff line change
@@ -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
*/

This file was deleted.

7 changes: 7 additions & 0 deletions _tests/phpcompatibility/parenttheme/bistro/style.css
Original file line number Diff line number Diff line change
@@ -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
*/

This file was deleted.

File renamed without changes.
7 changes: 7 additions & 0 deletions _tests/phpstan/childtheme/bistro/style.css
Original file line number Diff line number Diff line change
@@ -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
*/
7 changes: 0 additions & 7 deletions _tests/phpstan/childtheme/wporg-theme-storefront/style.css

This file was deleted.

File renamed without changes.
7 changes: 7 additions & 0 deletions _tests/phpstan/parenttheme/bistro/style.css
Original file line number Diff line number Diff line change
@@ -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
*/
6 changes: 0 additions & 6 deletions _tests/phpstan/parenttheme/wporg-theme-storefront/style.css

This file was deleted.

7 changes: 7 additions & 0 deletions _tests/security/childtheme/bistro/style.css
Original file line number Diff line number Diff line change
@@ -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
*/
7 changes: 0 additions & 7 deletions _tests/security/childtheme/wporg-theme-storefront/style.css

This file was deleted.

7 changes: 7 additions & 0 deletions _tests/security/parenttheme/bistro/style.css
Original file line number Diff line number Diff line change
@@ -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
*/
6 changes: 0 additions & 6 deletions _tests/security/parenttheme/wporg-theme-storefront/style.css

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": [],
Expand Down Expand Up @@ -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"
},
Expand Down Expand Up @@ -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"
},
Expand Down Expand Up @@ -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"
},
Expand Down Expand Up @@ -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": [
{
Expand All @@ -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"
},
Expand Down Expand Up @@ -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"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": [],
Expand Down Expand Up @@ -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"
},
Expand Down Expand Up @@ -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"
},
Expand Down Expand Up @@ -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"
},
Expand Down Expand Up @@ -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": [
{
Expand All @@ -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"
},
Expand Down Expand Up @@ -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"
},
Expand Down
Loading

0 comments on commit 758ab1c

Please sign in to comment.