From 6b2a050c6196a866edc833a17a407552acafb297 Mon Sep 17 00:00:00 2001 From: George Pattichis Date: Thu, 30 May 2024 00:52:14 +0300 Subject: [PATCH] Move EVA tests to own suite --- .github/workflows/tests-php-eva.yml | 2 +- composer.lock | 199 +++++++++--------- tests/eva_integration.suite.dist.yml | 2 + .../Power_Automate/APITest.php | 77 ------- ...i_key_pairs_initial_state__0.snapshot.json | 1 - ...et_multiple_api_key_pairs__0.snapshot.json | 20 -- ...y_get_single_api_key_pair__0.snapshot.json | 11 - ...rrectly_get_user_dropdown__0.snapshot.json | 21 -- ..._get_all_endpoint_details__0.snapshot.json | 92 -------- ...dashboard_fields_disabled__0.snapshot.json | 18 -- ...oard_fields_initial_state__0.snapshot.json | 18 -- ...board_fields_queue_counts__0.snapshot.json | 18 -- ...tion_fields_initial_state__0.snapshot.json | 34 --- ..._render_single_connection__0.snapshot.json | 34 --- ...ter_deleting_a_connection__0.snapshot.json | 34 --- ...when_multiple_connections__0.snapshot.json | 34 --- .../Event_Automator/Zapier/APITest.php | 77 ------- ...i_key_pairs_initial_state__0.snapshot.json | 1 - ...et_multiple_api_key_pairs__0.snapshot.json | 20 -- ...y_get_single_api_key_pair__0.snapshot.json | 11 - ...rrectly_get_user_dropdown__0.snapshot.json | 21 -- ..._get_all_endpoint_details__0.snapshot.json | 142 ------------- ...dashboard_fields_disabled__0.snapshot.json | 18 -- ...oard_fields_initial_state__0.snapshot.json | 18 -- ...board_fields_queue_counts__0.snapshot.json | 18 -- ..._api_fields_initial_state__0.snapshot.json | 18 -- ...ly_render_single_key_pair__0.snapshot.json | 18 -- ...er_deleting_api_key_pairs__0.snapshot.json | 18 -- ...y_when_multiple_key_pairs__0.snapshot.json | 18 -- 29 files changed, 106 insertions(+), 907 deletions(-) delete mode 100644 tests/snapshots/Event_Automator/Power_Automate/APITest.php delete mode 100644 tests/snapshots/Event_Automator/Power_Automate/__snapshots__/APITest__should_correctly_get_api_key_pairs_initial_state__0.snapshot.json delete mode 100644 tests/snapshots/Event_Automator/Power_Automate/__snapshots__/APITest__should_correctly_get_multiple_api_key_pairs__0.snapshot.json delete mode 100644 tests/snapshots/Event_Automator/Power_Automate/__snapshots__/APITest__should_correctly_get_single_api_key_pair__0.snapshot.json delete mode 100644 tests/snapshots/Event_Automator/Power_Automate/__snapshots__/APITest__should_correctly_get_user_dropdown__0.snapshot.json delete mode 100644 tests/snapshots/Event_Automator/Power_Automate/__snapshots__/DashboardTest__should_correctly_get_all_endpoint_details__0.snapshot.json delete mode 100644 tests/snapshots/Event_Automator/Power_Automate/__snapshots__/DashboardTest__should_correctly_render_dashboard_fields_disabled__0.snapshot.json delete mode 100644 tests/snapshots/Event_Automator/Power_Automate/__snapshots__/DashboardTest__should_correctly_render_dashboard_fields_initial_state__0.snapshot.json delete mode 100644 tests/snapshots/Event_Automator/Power_Automate/__snapshots__/DashboardTest__should_correctly_render_dashboard_fields_queue_counts__0.snapshot.json delete mode 100644 tests/snapshots/Event_Automator/Power_Automate/__snapshots__/SettingsTest__should_correctly_render_connection_fields_initial_state__0.snapshot.json delete mode 100644 tests/snapshots/Event_Automator/Power_Automate/__snapshots__/SettingsTest__should_correctly_render_single_connection__0.snapshot.json delete mode 100644 tests/snapshots/Event_Automator/Power_Automate/__snapshots__/SettingsTest__should_render_correctly_after_deleting_a_connection__0.snapshot.json delete mode 100644 tests/snapshots/Event_Automator/Power_Automate/__snapshots__/SettingsTest__should_render_correctly_when_multiple_connections__0.snapshot.json delete mode 100644 tests/snapshots/Event_Automator/Zapier/APITest.php delete mode 100644 tests/snapshots/Event_Automator/Zapier/__snapshots__/APITest__should_correctly_get_api_key_pairs_initial_state__0.snapshot.json delete mode 100644 tests/snapshots/Event_Automator/Zapier/__snapshots__/APITest__should_correctly_get_multiple_api_key_pairs__0.snapshot.json delete mode 100644 tests/snapshots/Event_Automator/Zapier/__snapshots__/APITest__should_correctly_get_single_api_key_pair__0.snapshot.json delete mode 100644 tests/snapshots/Event_Automator/Zapier/__snapshots__/APITest__should_correctly_get_user_dropdown__0.snapshot.json delete mode 100644 tests/snapshots/Event_Automator/Zapier/__snapshots__/DashboardTest__should_correctly_get_all_endpoint_details__0.snapshot.json delete mode 100644 tests/snapshots/Event_Automator/Zapier/__snapshots__/DashboardTest__should_correctly_render_dashboard_fields_disabled__0.snapshot.json delete mode 100644 tests/snapshots/Event_Automator/Zapier/__snapshots__/DashboardTest__should_correctly_render_dashboard_fields_initial_state__0.snapshot.json delete mode 100644 tests/snapshots/Event_Automator/Zapier/__snapshots__/DashboardTest__should_correctly_render_dashboard_fields_queue_counts__0.snapshot.json delete mode 100644 tests/snapshots/Event_Automator/Zapier/__snapshots__/SettingsTest__should_correctly_render_api_fields_initial_state__0.snapshot.json delete mode 100644 tests/snapshots/Event_Automator/Zapier/__snapshots__/SettingsTest__should_correctly_render_single_key_pair__0.snapshot.json delete mode 100644 tests/snapshots/Event_Automator/Zapier/__snapshots__/SettingsTest__should_render_correctly_after_deleting_api_key_pairs__0.snapshot.json delete mode 100644 tests/snapshots/Event_Automator/Zapier/__snapshots__/SettingsTest__should_render_correctly_when_multiple_key_pairs__0.snapshot.json diff --git a/.github/workflows/tests-php-eva.yml b/.github/workflows/tests-php-eva.yml index aadadfec11..60fc48a6b5 100644 --- a/.github/workflows/tests-php-eva.yml +++ b/.github/workflows/tests-php-eva.yml @@ -4,7 +4,7 @@ jobs: test: strategy: matrix: - suite: [ eva_integration, eva_restv1, eva_restv1_et, eva_end2end ] + suite: [ eva_integration, restv1, restv1_et, end2end ] runs-on: ubuntu-latest steps: # ------------------------------------------------------------------------------ diff --git a/composer.lock b/composer.lock index f947d465eb..e4d9ce1a50 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "deedcb82711df6552e2d0ead03884056", + "content-hash": "6b73fd2c3dd621ec2cc01b42d50549af", "packages": [ { "name": "firebase/php-jwt", @@ -70,16 +70,16 @@ }, { "name": "lucatume/di52", - "version": "3.3.5", + "version": "3.3.7", "source": { "type": "git", "url": "https://github.com/lucatume/di52.git", - "reference": "d39d1cbbc57eb41c7aa21fab106e17b6938ec6b3" + "reference": "76c0c2ad0422ce595e2e38138456f3475888e32c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/lucatume/di52/zipball/d39d1cbbc57eb41c7aa21fab106e17b6938ec6b3", - "reference": "d39d1cbbc57eb41c7aa21fab106e17b6938ec6b3", + "url": "https://api.github.com/repos/lucatume/di52/zipball/76c0c2ad0422ce595e2e38138456f3475888e32c", + "reference": "76c0c2ad0422ce595e2e38138456f3475888e32c", "shasum": "" }, "require": { @@ -109,9 +109,9 @@ "description": "A PHP 5.6 compatible dependency injection container.", "support": { "issues": "https://github.com/lucatume/di52/issues", - "source": "https://github.com/lucatume/di52/tree/3.3.5" + "source": "https://github.com/lucatume/di52/tree/3.3.7" }, - "time": "2023-09-01T08:49:32+00:00" + "time": "2024-04-26T14:46:26+00:00" }, { "name": "monolog/monolog", @@ -455,12 +455,12 @@ "source": { "type": "git", "url": "https://github.com/stellarwp/models.git", - "reference": "1e364cc54883ac43fc25f7fce652259439af0a89" + "reference": "7c21d232c06a6670e5845570945791f2887ead48" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/stellarwp/models/zipball/1e364cc54883ac43fc25f7fce652259439af0a89", - "reference": "1e364cc54883ac43fc25f7fce652259439af0a89", + "url": "https://api.github.com/repos/stellarwp/models/zipball/7c21d232c06a6670e5845570945791f2887ead48", + "reference": "7c21d232c06a6670e5845570945791f2887ead48", "shasum": "" }, "require": { @@ -502,9 +502,9 @@ ], "support": { "issues": "https://github.com/stellarwp/models/issues", - "source": "https://github.com/stellarwp/models/tree/1.2.1" + "source": "https://github.com/stellarwp/models/tree/main" }, - "time": "2023-09-12T15:59:24+00:00" + "time": "2024-05-10T21:20:20+00:00" }, { "name": "stellarwp/schema", @@ -666,32 +666,32 @@ }, { "name": "automattic/vipwpcs", - "version": "3.0.0", + "version": "3.0.1", "source": { "type": "git", "url": "https://github.com/Automattic/VIP-Coding-Standards.git", - "reference": "1b8960ebff9ea3eb482258a906ece4d1ee1e25fd" + "reference": "2b1d206d81b74ed999023cffd924f862ff2753c8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Automattic/VIP-Coding-Standards/zipball/1b8960ebff9ea3eb482258a906ece4d1ee1e25fd", - "reference": "1b8960ebff9ea3eb482258a906ece4d1ee1e25fd", + "url": "https://api.github.com/repos/Automattic/VIP-Coding-Standards/zipball/2b1d206d81b74ed999023cffd924f862ff2753c8", + "reference": "2b1d206d81b74ed999023cffd924f862ff2753c8", "shasum": "" }, "require": { "php": ">=5.4", - "phpcsstandards/phpcsextra": "^1.1.0", - "phpcsstandards/phpcsutils": "^1.0.8", - "sirbrillig/phpcs-variable-analysis": "^2.11.17", - "squizlabs/php_codesniffer": "^3.7.2", - "wp-coding-standards/wpcs": "^3.0" + "phpcsstandards/phpcsextra": "^1.2.1", + "phpcsstandards/phpcsutils": "^1.0.11", + "sirbrillig/phpcs-variable-analysis": "^2.11.18", + "squizlabs/php_codesniffer": "^3.9.2", + "wp-coding-standards/wpcs": "^3.1.0" }, "require-dev": { "php-parallel-lint/php-console-highlighter": "^1.0.0", "php-parallel-lint/php-parallel-lint": "^1.3.2", "phpcompatibility/php-compatibility": "^9", "phpcsstandards/phpcsdevtools": "^1.0", - "phpunit/phpunit": "^4 || ^5 || ^6 || ^7" + "phpunit/phpunit": "^4 || ^5 || ^6 || ^7 || ^8 || ^9" }, "type": "phpcodesniffer-standard", "notification-url": "https://packagist.org/downloads/", @@ -716,7 +716,7 @@ "source": "https://github.com/Automattic/VIP-Coding-Standards", "wiki": "https://github.com/Automattic/VIP-Coding-Standards/wiki" }, - "time": "2023-09-05T11:01:05+00:00" + "time": "2024-05-10T20:31:09+00:00" }, { "name": "behat/gherkin", @@ -2041,16 +2041,16 @@ }, { "name": "lucatume/codeception-snapshot-assertions", - "version": "0.3.0", + "version": "0.2.4", "source": { "type": "git", "url": "https://github.com/lucatume/codeception-snapshot-assertions.git", - "reference": "8de42335abf18e59cc8e84d27182559a2dbdd12e" + "reference": "077108237a121d3ddcf7070aa8519dea25459a6a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/lucatume/codeception-snapshot-assertions/zipball/8de42335abf18e59cc8e84d27182559a2dbdd12e", - "reference": "8de42335abf18e59cc8e84d27182559a2dbdd12e", + "url": "https://api.github.com/repos/lucatume/codeception-snapshot-assertions/zipball/077108237a121d3ddcf7070aa8519dea25459a6a", + "reference": "077108237a121d3ddcf7070aa8519dea25459a6a", "shasum": "" }, "require": { @@ -2080,9 +2080,9 @@ "description": "Snapshot assertions sugar for Codeception.", "support": { "issues": "https://github.com/lucatume/codeception-snapshot-assertions/issues", - "source": "https://github.com/lucatume/codeception-snapshot-assertions/tree/0.3.0" + "source": "https://github.com/lucatume/codeception-snapshot-assertions/tree/master" }, - "time": "2023-09-08T10:12:49+00:00" + "time": "2020-02-05T20:17:49+00:00" }, { "name": "lucatume/function-mocker-le", @@ -2807,22 +2807,22 @@ }, { "name": "phpcsstandards/phpcsutils", - "version": "1.0.10", + "version": "1.0.12", "source": { "type": "git", "url": "https://github.com/PHPCSStandards/PHPCSUtils.git", - "reference": "51609a5b89f928e0c463d6df80eb38eff1eaf544" + "reference": "87b233b00daf83fb70f40c9a28692be017ea7c6c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCSStandards/PHPCSUtils/zipball/51609a5b89f928e0c463d6df80eb38eff1eaf544", - "reference": "51609a5b89f928e0c463d6df80eb38eff1eaf544", + "url": "https://api.github.com/repos/PHPCSStandards/PHPCSUtils/zipball/87b233b00daf83fb70f40c9a28692be017ea7c6c", + "reference": "87b233b00daf83fb70f40c9a28692be017ea7c6c", "shasum": "" }, "require": { "dealerdirect/phpcodesniffer-composer-installer": "^0.4.1 || ^0.5 || ^0.6.2 || ^0.7 || ^1.0", "php": ">=5.4", - "squizlabs/php_codesniffer": "^3.9.0 || 4.0.x-dev@dev" + "squizlabs/php_codesniffer": "^3.10.0 || 4.0.x-dev@dev" }, "require-dev": { "ext-filter": "*", @@ -2891,7 +2891,7 @@ "type": "open_collective" } ], - "time": "2024-03-17T23:44:50+00:00" + "time": "2024-05-20T13:34:27+00:00" }, { "name": "phpdocumentor/reflection-common", @@ -2948,28 +2948,35 @@ }, { "name": "phpdocumentor/reflection-docblock", - "version": "5.3.0", + "version": "5.4.1", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "622548b623e81ca6d78b721c5e029f4ce664f170" + "reference": "9d07b3f7fdcf5efec5d1609cba3c19c5ea2bdc9c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/622548b623e81ca6d78b721c5e029f4ce664f170", - "reference": "622548b623e81ca6d78b721c5e029f4ce664f170", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/9d07b3f7fdcf5efec5d1609cba3c19c5ea2bdc9c", + "reference": "9d07b3f7fdcf5efec5d1609cba3c19c5ea2bdc9c", "shasum": "" }, "require": { + "doctrine/deprecations": "^1.1", "ext-filter": "*", - "php": "^7.2 || ^8.0", + "php": "^7.4 || ^8.0", "phpdocumentor/reflection-common": "^2.2", - "phpdocumentor/type-resolver": "^1.3", + "phpdocumentor/type-resolver": "^1.7", + "phpstan/phpdoc-parser": "^1.7", "webmozart/assert": "^1.9.1" }, "require-dev": { - "mockery/mockery": "~1.3.2", - "psalm/phar": "^4.8" + "mockery/mockery": "~1.3.5", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-mockery": "^1.1", + "phpstan/phpstan-webmozart-assert": "^1.2", + "phpunit/phpunit": "^9.5", + "vimeo/psalm": "^5.13" }, "type": "library", "extra": { @@ -2993,15 +3000,15 @@ }, { "name": "Jaap van Otterdijk", - "email": "account@ijaap.nl" + "email": "opensource@ijaap.nl" } ], "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", "support": { "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", - "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.3.0" + "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.4.1" }, - "time": "2021-10-19T17:43:47+00:00" + "time": "2024-05-21T05:55:05+00:00" }, { "name": "phpdocumentor/type-resolver", @@ -3132,16 +3139,16 @@ }, { "name": "phpstan/phpdoc-parser", - "version": "1.26.0", + "version": "1.29.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "231e3186624c03d7e7c890ec662b81e6b0405227" + "reference": "536889f2b340489d328f5ffb7b02bb6b183ddedc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/231e3186624c03d7e7c890ec662b81e6b0405227", - "reference": "231e3186624c03d7e7c890ec662b81e6b0405227", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/536889f2b340489d328f5ffb7b02bb6b183ddedc", + "reference": "536889f2b340489d328f5ffb7b02bb6b183ddedc", "shasum": "" }, "require": { @@ -3173,9 +3180,9 @@ "description": "PHPDoc parser with support for nullable, intersection and generic types", "support": { "issues": "https://github.com/phpstan/phpdoc-parser/issues", - "source": "https://github.com/phpstan/phpdoc-parser/tree/1.26.0" + "source": "https://github.com/phpstan/phpdoc-parser/tree/1.29.0" }, - "time": "2024-02-23T16:05:55+00:00" + "time": "2024-05-06T12:04:23+00:00" }, { "name": "phpunit/php-code-coverage", @@ -4417,16 +4424,16 @@ }, { "name": "sirbrillig/phpcs-variable-analysis", - "version": "v2.11.17", + "version": "v2.11.18", "source": { "type": "git", "url": "https://github.com/sirbrillig/phpcs-variable-analysis.git", - "reference": "3b71162a6bf0cde2bff1752e40a1788d8273d049" + "reference": "ca242a0b7309e0f9d1f73b236e04ecf4ca3248d0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sirbrillig/phpcs-variable-analysis/zipball/3b71162a6bf0cde2bff1752e40a1788d8273d049", - "reference": "3b71162a6bf0cde2bff1752e40a1788d8273d049", + "url": "https://api.github.com/repos/sirbrillig/phpcs-variable-analysis/zipball/ca242a0b7309e0f9d1f73b236e04ecf4ca3248d0", + "reference": "ca242a0b7309e0f9d1f73b236e04ecf4ca3248d0", "shasum": "" }, "require": { @@ -4471,7 +4478,7 @@ "source": "https://github.com/sirbrillig/phpcs-variable-analysis", "wiki": "https://github.com/sirbrillig/phpcs-variable-analysis/wiki" }, - "time": "2023-08-05T23:46:11+00:00" + "time": "2024-04-13T16:42:46+00:00" }, { "name": "slevomat/coding-standard", @@ -4540,16 +4547,16 @@ }, { "name": "squizlabs/php_codesniffer", - "version": "3.9.0", + "version": "3.10.1", "source": { "type": "git", "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git", - "reference": "d63cee4890a8afaf86a22e51ad4d97c91dd4579b" + "reference": "8f90f7a53ce271935282967f53d0894f8f1ff877" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/d63cee4890a8afaf86a22e51ad4d97c91dd4579b", - "reference": "d63cee4890a8afaf86a22e51ad4d97c91dd4579b", + "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/8f90f7a53ce271935282967f53d0894f8f1ff877", + "reference": "8f90f7a53ce271935282967f53d0894f8f1ff877", "shasum": "" }, "require": { @@ -4616,7 +4623,7 @@ "type": "open_collective" } ], - "time": "2024-02-16T15:06:51+00:00" + "time": "2024-05-22T21:24:41+00:00" }, { "name": "stellarwp/coding-standards", @@ -4903,16 +4910,16 @@ }, { "name": "symfony/deprecation-contracts", - "version": "v2.5.2", + "version": "v2.5.3", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66" + "reference": "80d075412b557d41002320b96a096ca65aa2c98d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/e8b495ea28c1d97b5e0c121748d6f9b53d075c66", - "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/80d075412b557d41002320b96a096ca65aa2c98d", + "reference": "80d075412b557d41002320b96a096ca65aa2c98d", "shasum": "" }, "require": { @@ -4950,7 +4957,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.2" + "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.3" }, "funding": [ { @@ -4966,7 +4973,7 @@ "type": "tidelift" } ], - "time": "2022-01-02T09:53:40+00:00" + "time": "2023-01-24T14:02:46+00:00" }, { "name": "symfony/dom-crawler", @@ -5884,16 +5891,16 @@ }, { "name": "symfony/service-contracts", - "version": "v2.5.2", + "version": "v2.5.3", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "4b426aac47d6427cc1a1d0f7e2ac724627f5966c" + "reference": "a2329596ddc8fd568900e3fc76cba42489ecc7f3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/4b426aac47d6427cc1a1d0f7e2ac724627f5966c", - "reference": "4b426aac47d6427cc1a1d0f7e2ac724627f5966c", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/a2329596ddc8fd568900e3fc76cba42489ecc7f3", + "reference": "a2329596ddc8fd568900e3fc76cba42489ecc7f3", "shasum": "" }, "require": { @@ -5947,7 +5954,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v2.5.2" + "source": "https://github.com/symfony/service-contracts/tree/v2.5.3" }, "funding": [ { @@ -5963,7 +5970,7 @@ "type": "tidelift" } ], - "time": "2022-05-30T19:17:29+00:00" + "time": "2023-04-21T15:04:16+00:00" }, { "name": "symfony/translation", @@ -6062,16 +6069,16 @@ }, { "name": "symfony/translation-contracts", - "version": "v2.5.2", + "version": "v2.5.3", "source": { "type": "git", "url": "https://github.com/symfony/translation-contracts.git", - "reference": "136b19dd05cdf0709db6537d058bcab6dd6e2dbe" + "reference": "b0073a77ac0b7ea55131020e87b1e3af540f4664" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/136b19dd05cdf0709db6537d058bcab6dd6e2dbe", - "reference": "136b19dd05cdf0709db6537d058bcab6dd6e2dbe", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/b0073a77ac0b7ea55131020e87b1e3af540f4664", + "reference": "b0073a77ac0b7ea55131020e87b1e3af540f4664", "shasum": "" }, "require": { @@ -6120,7 +6127,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/translation-contracts/tree/v2.5.2" + "source": "https://github.com/symfony/translation-contracts/tree/v2.5.3" }, "funding": [ { @@ -6136,7 +6143,7 @@ "type": "tidelift" } ], - "time": "2022-06-27T16:58:25+00:00" + "time": "2024-01-23T13:51:25+00:00" }, { "name": "symfony/yaml", @@ -6215,22 +6222,22 @@ "source": { "type": "git", "url": "https://github.com/the-events-calendar/tec-testing-facilities.git", - "reference": "6c66235042c4389079a0c98ff8e70ad0ac227eb0" + "reference": "0b5909300805b8844ce4720cee72ea7389eb2e58" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/the-events-calendar/tec-testing-facilities/zipball/6c66235042c4389079a0c98ff8e70ad0ac227eb0", - "reference": "6c66235042c4389079a0c98ff8e70ad0ac227eb0", + "url": "https://api.github.com/repos/the-events-calendar/tec-testing-facilities/zipball/0b5909300805b8844ce4720cee72ea7389eb2e58", + "reference": "0b5909300805b8844ce4720cee72ea7389eb2e58", "shasum": "" }, "require": { "lucatume/wp-browser": "^2.0 || ^3.0", "nilportugues/sql-query-formatter": "^1.2", - "php": ">=7.0" + "php": ">=7.4" }, "require-dev": { "codeception/codeception": "^3.0", - "dealerdirect/phpcodesniffer-composer-installer": "^0.5.0", + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.2", "phpunit/phpunit": "^6.0", "vlucas/phpdotenv": "^3.0", "wordpress/wordpress": "dev-master", @@ -6261,7 +6268,7 @@ "issues": "https://github.com/the-events-calendar/tec-testing-facilities/issues", "source": "https://github.com/the-events-calendar/tec-testing-facilities/tree/master" }, - "time": "2022-05-20T15:21:07+00:00" + "time": "2024-04-15T14:14:23+00:00" }, { "name": "theseer/tokenizer", @@ -6739,16 +6746,16 @@ }, { "name": "wp-coding-standards/wpcs", - "version": "3.0.1", + "version": "3.1.0", "source": { "type": "git", "url": "https://github.com/WordPress/WordPress-Coding-Standards.git", - "reference": "b4caf9689f1a0e4a4c632679a44e638c1c67aff1" + "reference": "9333efcbff231f10dfd9c56bb7b65818b4733ca7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/b4caf9689f1a0e4a4c632679a44e638c1c67aff1", - "reference": "b4caf9689f1a0e4a4c632679a44e638c1c67aff1", + "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/9333efcbff231f10dfd9c56bb7b65818b4733ca7", + "reference": "9333efcbff231f10dfd9c56bb7b65818b4733ca7", "shasum": "" }, "require": { @@ -6757,16 +6764,16 @@ "ext-tokenizer": "*", "ext-xmlreader": "*", "php": ">=5.4", - "phpcsstandards/phpcsextra": "^1.1.0", - "phpcsstandards/phpcsutils": "^1.0.8", - "squizlabs/php_codesniffer": "^3.7.2" + "phpcsstandards/phpcsextra": "^1.2.1", + "phpcsstandards/phpcsutils": "^1.0.10", + "squizlabs/php_codesniffer": "^3.9.0" }, "require-dev": { "php-parallel-lint/php-console-highlighter": "^1.0.0", "php-parallel-lint/php-parallel-lint": "^1.3.2", "phpcompatibility/php-compatibility": "^9.0", "phpcsstandards/phpcsdevtools": "^1.2.0", - "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0" + "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0" }, "suggest": { "ext-iconv": "For improved results", @@ -6797,11 +6804,11 @@ }, "funding": [ { - "url": "https://opencollective.com/thewpcc/contribute/wp-php-63406", + "url": "https://opencollective.com/php_codesniffer", "type": "custom" } ], - "time": "2023-09-14T07:06:09+00:00" + "time": "2024-03-25T16:39:00+00:00" }, { "name": "zordius/lightncandy", diff --git a/tests/eva_integration.suite.dist.yml b/tests/eva_integration.suite.dist.yml index 452a11cf6d..cd6eac81e7 100644 --- a/tests/eva_integration.suite.dist.yml +++ b/tests/eva_integration.suite.dist.yml @@ -15,10 +15,12 @@ modules: - the-events-calendar/the-events-calendar.php - event-tickets/event-tickets.php - event-tickets-plus/event-tickets-plus.php + - easy-digital-downloads/easy-digital-downloads.php activatePlugins: - the-events-calendar/the-events-calendar.php - event-tickets/event-tickets.php - event-tickets-plus/event-tickets-plus.php + - easy-digital-downloads/easy-digital-downloads.php silentlyActivatePlugins: - woocommerce/woocommerce.php - WPQueries diff --git a/tests/snapshots/Event_Automator/Power_Automate/APITest.php b/tests/snapshots/Event_Automator/Power_Automate/APITest.php deleted file mode 100644 index ef42f12bcf..0000000000 --- a/tests/snapshots/Event_Automator/Power_Automate/APITest.php +++ /dev/null @@ -1,77 +0,0 @@ -get_list_of_api_keys( true ); - - $this->assertMatchesJsonSnapshot( json_encode( $api_keys, JSON_PRETTY_PRINT ) ); - } - - /** - * @test - */ - public function should_correctly_get_single_api_key_pair() { - $this->set_fn_return( 'wp_create_nonce', '123123' ); - $mock_api_key_data = file_get_contents( codecept_data_dir( 'Power_Automate/Connections/200-account-valid-key-pair.json' ) ); - $api = new Api( tribe( Actions::class ), tribe( Template_Modifications::class ) ); - $api_key_data = json_decode( $mock_api_key_data, true ); - $api->set_api_key_by_id( $api_key_data ); - $api_keys = $api->get_list_of_api_keys( true ); - - $this->assertMatchesJsonSnapshot( json_encode( $api_keys, JSON_PRETTY_PRINT ) ); - } - - /** - * @test - */ - public function should_correctly_get_multiple_api_key_pairs() { - $this->set_fn_return( 'wp_create_nonce', '123123' ); - $api = new Api( tribe( Actions::class ), tribe( Template_Modifications::class ) ); - - // Setup account 1. - $mock_api_key_data = file_get_contents( codecept_data_dir( 'Power_Automate/Connections/200-account-valid-key-pair.json' ) ); - $api_key_data = json_decode( $mock_api_key_data, true ); - $api->set_api_key_by_id( $api_key_data ); - - // Setup account 2. - $mock_account_data_2 = file_get_contents( codecept_data_dir( 'Power_Automate/Connections/200-account-valid-key-pair-2.json' ) ); - $api_key_data_2 = json_decode( $mock_account_data_2, true ); - $api->set_api_key_by_id( $api_key_data_2 ); - - $api_keys = $api->get_list_of_api_keys( true ); - - $this->assertMatchesJsonSnapshot( json_encode( $api_keys, JSON_PRETTY_PRINT ) ); - } - - /** - * @test - */ - public function should_correctly_get_user_dropdown() { - $this->set_fn_return( 'wp_create_nonce', '123123' ); - $api = new Api( tribe( Actions::class ), tribe( Template_Modifications::class ) ); - $user_dropdown = $api->get_users_dropdown( true ); - - $this->assertMatchesJsonSnapshot( json_encode( $user_dropdown, JSON_PRETTY_PRINT ) ); - } -} diff --git a/tests/snapshots/Event_Automator/Power_Automate/__snapshots__/APITest__should_correctly_get_api_key_pairs_initial_state__0.snapshot.json b/tests/snapshots/Event_Automator/Power_Automate/__snapshots__/APITest__should_correctly_get_api_key_pairs_initial_state__0.snapshot.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/tests/snapshots/Event_Automator/Power_Automate/__snapshots__/APITest__should_correctly_get_api_key_pairs_initial_state__0.snapshot.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/tests/snapshots/Event_Automator/Power_Automate/__snapshots__/APITest__should_correctly_get_multiple_api_key_pairs__0.snapshot.json b/tests/snapshots/Event_Automator/Power_Automate/__snapshots__/APITest__should_correctly_get_multiple_api_key_pairs__0.snapshot.json deleted file mode 100644 index 5b73de3e54..0000000000 --- a/tests/snapshots/Event_Automator/Power_Automate/__snapshots__/APITest__should_correctly_get_multiple_api_key_pairs__0.snapshot.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "efbe2a4f41ad592da9afe3cef24a5b358e9c6ab395e8c86e39593ab7a374815b": { - "consumer_id": "efbe2a4f41ad592da9afe3cef24a5b358e9c6ab395e8c86e39593ab7a374815b", - "consumer_secret": "f1c9b5d880695649df16689a39d574fb0802150397d9728c511c8fcc87415c29", - "has_pair": "true", - "permissions": "read", - "last_access": "", - "user_id": "1", - "name": "Automated Tests PA 1" - }, - "2ed61a7fd3ec668ec3e82e00f22e0c8230d353a5": { - "consumer_id": "2ed61a7fd3ec668ec3e82e00f22e0c8230d353a5", - "consumer_secret": "e712e1a4a698214c3537016f633e06cc8fcbbd0e", - "has_pair": "true", - "permissions": "read", - "last_access": "2022-10-18 06:35:55", - "user_id": "1", - "name": "Automated Tests PA 15" - } -} \ No newline at end of file diff --git a/tests/snapshots/Event_Automator/Power_Automate/__snapshots__/APITest__should_correctly_get_single_api_key_pair__0.snapshot.json b/tests/snapshots/Event_Automator/Power_Automate/__snapshots__/APITest__should_correctly_get_single_api_key_pair__0.snapshot.json deleted file mode 100644 index 39180455b3..0000000000 --- a/tests/snapshots/Event_Automator/Power_Automate/__snapshots__/APITest__should_correctly_get_single_api_key_pair__0.snapshot.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "efbe2a4f41ad592da9afe3cef24a5b358e9c6ab395e8c86e39593ab7a374815b": { - "consumer_id": "efbe2a4f41ad592da9afe3cef24a5b358e9c6ab395e8c86e39593ab7a374815b", - "consumer_secret": "f1c9b5d880695649df16689a39d574fb0802150397d9728c511c8fcc87415c29", - "has_pair": "true", - "permissions": "read", - "last_access": "", - "user_id": "1", - "name": "Automated Tests PA 1" - } -} \ No newline at end of file diff --git a/tests/snapshots/Event_Automator/Power_Automate/__snapshots__/APITest__should_correctly_get_user_dropdown__0.snapshot.json b/tests/snapshots/Event_Automator/Power_Automate/__snapshots__/APITest__should_correctly_get_user_dropdown__0.snapshot.json deleted file mode 100644 index 6e2846ecc0..0000000000 --- a/tests/snapshots/Event_Automator/Power_Automate/__snapshots__/APITest__should_correctly_get_user_dropdown__0.snapshot.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "label": "Users", - "id": "tec-settings-power-automate-users", - "classes_label": [ - "screen-reader-text" - ], - "classes_select": [ - "tec-settings__users-dropdown", - "tec-settings-power-automate-details-api-key__users-dropdown" - ], - "name": "tec_automator_power-automate[]['users']", - "selected": 0, - "users_count": 0, - "users_arr": [], - "attrs": { - "placeholder": "Select a User", - "data-prevent-clear": true, - "data-force-search": true, - "data-options": "[]" - } -} \ No newline at end of file diff --git a/tests/snapshots/Event_Automator/Power_Automate/__snapshots__/DashboardTest__should_correctly_get_all_endpoint_details__0.snapshot.json b/tests/snapshots/Event_Automator/Power_Automate/__snapshots__/DashboardTest__should_correctly_get_all_endpoint_details__0.snapshot.json deleted file mode 100644 index 3af18f3816..0000000000 --- a/tests/snapshots/Event_Automator/Power_Automate/__snapshots__/DashboardTest__should_correctly_get_all_endpoint_details__0.snapshot.json +++ /dev/null @@ -1,92 +0,0 @@ -[ - { - "id": "attendees", - "display_name": "Attendees", - "type": "queue", - "last_access": "", - "count": 0, - "enabled": true, - "missing_dependency": false, - "dependents": [] - }, - { - "id": "canceled_events", - "display_name": "Canceled Events", - "type": "queue", - "last_access": "", - "count": 0, - "enabled": true, - "missing_dependency": false, - "dependents": [] - }, - { - "id": "checkin", - "display_name": "Checkins", - "type": "queue", - "last_access": "", - "count": 0, - "enabled": true, - "missing_dependency": false, - "dependents": [] - }, - { - "id": "create_events", - "display_name": "Create Events", - "type": "create", - "last_access": "", - "count": 0, - "enabled": true, - "missing_dependency": false, - "dependents": [] - }, - { - "id": "new_events", - "display_name": "New Events", - "type": "queue", - "last_access": "", - "count": 0, - "enabled": true, - "missing_dependency": false, - "dependents": [] - }, - { - "id": "orders", - "display_name": "Orders", - "type": "queue", - "last_access": "", - "count": 0, - "enabled": true, - "missing_dependency": false, - "dependents": [] - }, - { - "id": "refunded_orders", - "display_name": "Refunded Orders", - "type": "queue", - "last_access": "", - "count": 0, - "enabled": true, - "missing_dependency": false, - "dependents": [] - }, - { - "id": "updated_attendees", - "display_name": "Updated Attendees", - "type": "queue", - "last_access": "", - "count": 0, - "enabled": true, - "missing_dependency": false, - "dependents": [] - }, - { - "id": "updated_events", - "display_name": "Updated Events", - "type": "queue", - "last_access": "", - "count": 0, - "enabled": true, - "missing_dependency": false, - "dependents": [] - } -] \ No newline at end of file diff --git a/tests/snapshots/Event_Automator/Power_Automate/__snapshots__/DashboardTest__should_correctly_render_dashboard_fields_disabled__0.snapshot.json b/tests/snapshots/Event_Automator/Power_Automate/__snapshots__/DashboardTest__should_correctly_render_dashboard_fields_disabled__0.snapshot.json deleted file mode 100644 index 49366d09d1..0000000000 --- a/tests/snapshots/Event_Automator/Power_Automate/__snapshots__/DashboardTest__should_correctly_render_dashboard_fields_disabled__0.snapshot.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "tec_power_automate_endpoints_wrapper_open": { - "type": "html", - "html": "
" - }, - "tec_power_automate_endpoints_header": { - "type": "html", - "html": "
\n\t
\n\t\t
\n\t\t\t<\/svg>\n\t\t\t<\/svg>\n\t\t\t<\/svg>\n\t\t<\/div>\n\t<\/div>\n<\/div>\n

\n\tPower Automate Endpoint Dashboard<\/h3>\n

\n\tMonitor your Power Automate endpoints (triggers and actions used by your connectors).<\/p>\n

\n\tRead more about the Power Automate Endpoint Dashboard.<\/a><\/p>" - }, - "tec_power_automate_endpoints_endpoints": { - "type": "html", - "html": "

\n\tEndpoint Dashboard<\/legend>\n\t\t
\n\t<\/div>\n\t
\n\t\t
\n\t
\n\t\tName\t<\/div>\n\t
\n\t\tLast Access\t<\/div>\n\t
\n\t\tQueue\t<\/div>\n\t
\n\t\tActions\t<\/div>\n<\/div>\t\n\n\t
\n\t
\n\t\t\n\t\t\tName\t\t<\/legend>\n\t\t
\n\t\t\tAttendees\t\t\t\n\t\t\t\t\t\t\t