-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #198 from woocommerce/24-08/validation-self-test
Add self-tests for the Validation test
- Loading branch information
Showing
14 changed files
with
248 additions
and
0 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
...ationTest__test_validation_main_plugin_woo_php_wp_08cb3463942aa74df688a3f4a807718e__1.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php return '[ | ||
[ | ||
{ | ||
"test_run_id": 123456, | ||
"run_id": 123456, | ||
"test_type": "validation", | ||
"test_type_display": "Validation", | ||
"wordpress_version": "6.0.0-normalized", | ||
"woocommerce_version": "6.0.0-normalized", | ||
"php_version": "7.4", | ||
"max_php_version": "", | ||
"min_php_version": "", | ||
"additional_woo_plugins": [], | ||
"additional_wp_plugins": [], | ||
"test_log": "", | ||
"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": 18619, | ||
"host": "wccom", | ||
"name": "Google Product Feed", | ||
"type": "plugin" | ||
}, | ||
"client": "qit_cli", | ||
"event": "cli_development_extension_test", | ||
"optional_features": { | ||
"hpos": false, | ||
"new_product_editor": false | ||
}, | ||
"test_results_manager_url": "https:\\/\\/test-results-manager.com", | ||
"test_results_manager_expiration": 1234567890, | ||
"test_summary": "Errors: 0 Warnings: 0", | ||
"debug_log": "", | ||
"version": "Undefined", | ||
"update_complete": true, | ||
"ai_suggestion_status": "none", | ||
"malware_whitelist_paths": [], | ||
"workflow_id": "1234567890", | ||
"runner": "normalized", | ||
"test_result_json_extracted": "{EXTRACTED}" | ||
}, | ||
{ | ||
"test_result_json": { | ||
"headers": { | ||
"Requires PHP": "7.4" | ||
} | ||
} | ||
} | ||
] | ||
]'; |
53 changes: 53 additions & 0 deletions
53
...dationTest__test_validation_main_theme_woo_php_wp_3976d011ae5709242b883dfb4863e252__1.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php return '[ | ||
[ | ||
{ | ||
"test_run_id": 123456, | ||
"run_id": 123456, | ||
"test_type": "validation", | ||
"test_type_display": "Validation", | ||
"wordpress_version": "6.0.0-normalized", | ||
"woocommerce_version": "6.0.0-normalized", | ||
"php_version": "7.4", | ||
"max_php_version": "", | ||
"min_php_version": "", | ||
"additional_woo_plugins": [], | ||
"additional_wp_plugins": [], | ||
"test_log": "", | ||
"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": 1822936, | ||
"host": "wccom", | ||
"name": "Bistro", | ||
"type": "theme" | ||
}, | ||
"client": "qit_cli", | ||
"event": "cli_development_extension_test", | ||
"optional_features": { | ||
"hpos": false, | ||
"new_product_editor": false | ||
}, | ||
"test_results_manager_url": "https:\\/\\/test-results-manager.com", | ||
"test_results_manager_expiration": 1234567890, | ||
"test_summary": "Errors: 0 Warnings: 0", | ||
"debug_log": "", | ||
"version": "1.0.15", | ||
"update_complete": true, | ||
"ai_suggestion_status": "none", | ||
"malware_whitelist_paths": [], | ||
"workflow_id": "1234567890", | ||
"runner": "normalized", | ||
"test_result_json_extracted": "{EXTRACTED}" | ||
}, | ||
{ | ||
"test_result_json": { | ||
"headers": { | ||
"Requires PHP": "7.4" | ||
} | ||
} | ||
} | ||
] | ||
]'; |
53 changes: 53 additions & 0 deletions
53
...onTest__test_validation_missing_plugin_woo_php_wp_b2f118a836d0b8cf4a8f3ca7c3af96c6__1.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php return '[ | ||
[ | ||
{ | ||
"test_run_id": 123456, | ||
"run_id": 123456, | ||
"test_type": "validation", | ||
"test_type_display": "Validation", | ||
"wordpress_version": "6.0.0-normalized", | ||
"woocommerce_version": "6.0.0-normalized", | ||
"php_version": "7.4", | ||
"max_php_version": "", | ||
"min_php_version": "", | ||
"additional_woo_plugins": [], | ||
"additional_wp_plugins": [], | ||
"test_log": "", | ||
"status": "warning", | ||
"test_result_aws_url": "https:\\/\\/test-results-aws.com", | ||
"test_result_aws_expiration": 1234567890, | ||
"is_development": true, | ||
"send_notifications": false, | ||
"woo_extension": { | ||
"id": 18619, | ||
"host": "wccom", | ||
"name": "Google Product Feed", | ||
"type": "plugin" | ||
}, | ||
"client": "qit_cli", | ||
"event": "cli_development_extension_test", | ||
"optional_features": { | ||
"hpos": false, | ||
"new_product_editor": false | ||
}, | ||
"test_results_manager_url": "https:\\/\\/test-results-manager.com", | ||
"test_results_manager_expiration": 1234567890, | ||
"test_summary": "Errors: 0 Warnings: 1", | ||
"debug_log": "", | ||
"version": "Undefined", | ||
"update_complete": true, | ||
"ai_suggestion_status": "none", | ||
"malware_whitelist_paths": [], | ||
"workflow_id": "1234567890", | ||
"runner": "normalized", | ||
"test_result_json_extracted": "{EXTRACTED}" | ||
}, | ||
{ | ||
"test_result_json": { | ||
"headers": { | ||
"Requires PHP": false | ||
} | ||
} | ||
} | ||
] | ||
]'; |
53 changes: 53 additions & 0 deletions
53
...ionTest__test_validation_missing_theme_woo_php_wp_0f4ea06ab85fe945af93b8dc42336c32__1.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php return '[ | ||
[ | ||
{ | ||
"test_run_id": 123456, | ||
"run_id": 123456, | ||
"test_type": "validation", | ||
"test_type_display": "Validation", | ||
"wordpress_version": "6.0.0-normalized", | ||
"woocommerce_version": "6.0.0-normalized", | ||
"php_version": "7.4", | ||
"max_php_version": "", | ||
"min_php_version": "", | ||
"additional_woo_plugins": [], | ||
"additional_wp_plugins": [], | ||
"test_log": "", | ||
"status": "warning", | ||
"test_result_aws_url": "https:\\/\\/test-results-aws.com", | ||
"test_result_aws_expiration": 1234567890, | ||
"is_development": true, | ||
"send_notifications": false, | ||
"woo_extension": { | ||
"id": 1822936, | ||
"host": "wccom", | ||
"name": "Bistro", | ||
"type": "theme" | ||
}, | ||
"client": "qit_cli", | ||
"event": "cli_development_extension_test", | ||
"optional_features": { | ||
"hpos": false, | ||
"new_product_editor": false | ||
}, | ||
"test_results_manager_url": "https:\\/\\/test-results-manager.com", | ||
"test_results_manager_expiration": 1234567890, | ||
"test_summary": "Errors: 0 Warnings: 1", | ||
"debug_log": "", | ||
"version": "1.0.15", | ||
"update_complete": true, | ||
"ai_suggestion_status": "none", | ||
"malware_whitelist_paths": [], | ||
"workflow_id": "1234567890", | ||
"runner": "normalized", | ||
"test_result_json_extracted": "{EXTRACTED}" | ||
}, | ||
{ | ||
"test_result_json": { | ||
"headers": { | ||
"Requires PHP": false | ||
} | ||
} | ||
} | ||
] | ||
]'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?php | ||
return []; |
6 changes: 6 additions & 0 deletions
6
...aged_tests/validation/main_plugin/woocommerce-product-feeds/woocommerce-product-feeds.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?php | ||
|
||
/* | ||
* Plugin name: Validation - Main Plugin | ||
* Requires PHP: 7.4 | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* | ||
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 | ||
Requires PHP: 7.4 | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?php | ||
return []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?php | ||
return []; |
5 changes: 5 additions & 0 deletions
5
...d_tests/validation/missing_plugin/woocommerce-product-feeds/woocommerce-product-feeds.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
|
||
/* | ||
* Plugin name: Validation - Main Plugin | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php |
7 changes: 7 additions & 0 deletions
7
_tests/managed_tests/validation/missing_theme/bistro/style.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?php | ||
return []; |