upskill-event-manager/wordpress-dev/vendor/yoast/wp-test-utils/composer.json
bengizmo cdef12ee80 feat(events): Implement fallback logic and UI for Create/Modify Event page
- Refactored fallback submission logic in `class-event-handler.php` to remove `wp_die`/`exit` calls and use redirects for error handling, enabling proper unit testing.
- Implemented meta-data saving (dates, venue, organizer) in the fallback logic using `update_post_meta`.
- Updated unit tests (`test-event-management.php`) to remove `markTestIncomplete` calls related to handler errors and uncommented meta assertions. Unit tests for fallback logic now pass.
- Added Instructions section and Return to Dashboard button to the event form shortcode (`display_event_form_shortcode`).
- Applied basic theme styling classes (`ast-container`, `notice`, `ast-button`) to the event form.
- Updated `docs/implementation_plan.md` to reflect completion of tasks 4.1-4.5 and set focus to Task 5.

Refs: Task 4.1, 4.2, 4.3, 4.4, 4.5
2025-04-01 11:46:24 -03:00

92 lines
2.4 KiB
JSON

{
"name": "yoast/wp-test-utils",
"description": "PHPUnit cross-version compatibility layer for testing plugins and themes build for WordPress",
"license": "BSD-3-Clause",
"keywords": [
"wordpress",
"unit-testing",
"integration-testing",
"brainmonkey",
"phpunit",
"testing"
],
"authors": [
{
"name": "Team Yoast",
"email": "support@yoast.com",
"homepage": "https://yoast.com"
},
{
"name": "Contributors",
"homepage": "https://github.com/Yoast/wp-test-utils/graphs/contributors"
}
],
"homepage": "https://github.com/Yoast/wp-test-utils/",
"support": {
"issues": "https://github.com/Yoast/wp-test-utils/issues",
"source": "https://github.com/Yoast/wp-test-utils"
},
"require": {
"php": ">=5.6",
"brain/monkey": "^2.6.1",
"yoast/phpunit-polyfills": "^1.1.0"
},
"require-dev": {
"yoast/yoastcs": "^2.3.1"
},
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"classmap": [
"src/"
],
"exclude-from-classmap": [
"/src/WPIntegration/TestCase.php",
"/src/WPIntegration/TestCaseNoPolyfills.php"
]
},
"autoload-dev": {
"psr-4": {
"Yoast\\WPTestUtils\\Tests\\": "tests/"
}
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"extra": {
"branch-alias": {
"dev-develop": "1.x-dev",
"dev-main": "1.x-dev"
}
},
"scripts": {
"lint": [
"@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --show-deprecated --exclude vendor --exclude .git"
],
"check-cs": [
"@php ./vendor/squizlabs/php_codesniffer/bin/phpcs --runtime-set testVersion 5.6-"
],
"fix-cs": [
"@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf"
],
"test": [
"@php ./vendor/phpunit/phpunit/phpunit --no-coverage"
],
"coverage": [
"@php ./vendor/phpunit/phpunit/phpunit"
],
"coverage-local": [
"@php ./vendor/phpunit/phpunit/phpunit --coverage-html ./build/coverage-html"
]
},
"scripts-descriptions": {
"lint": "Check the PHP files for parse errors.",
"check-cs": "Check the PHP files for code style violations and best practices.",
"fix-cs": "Auto-fix code style violations in the PHP files.",
"test": "Run the unit tests without code coverage.",
"coverage": "Run the unit tests with code coverage.",
"coverage-local": "Run the unit tests with code coverage writing an HTML coverage report to a \"/build/coverage-html\" directory."
}
}