upskill-event-manager/wordpress-dev/vendor/brain/monkey/README.md
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

1.6 KiB

README

Brain Monkey

PHP Quality Assurance codecov

Brain Monkey is a tests utility for PHP.

It provides two set of helpers:

  • the first are framework-agnostic tools that allow to mock or _monkey patch_ and to test behavior of any PHP function
  • the second are specific to WordPress and make unit testing of WordPress extensions a no-brainer.

Requirements

Via Composer following packages are required:

When installed for development, following packages are also required:

License

Brain Monkey is open source and released under MIT license. See LICENSE file for more info.

Question? Issues?

Brain Monkey is hosted on GitHub. Feel free to open issues there for suggestions, questions and real issues.

Who's Behind

I'm Giuseppe, I deal with PHP since 2005. For questions, rants or chat ping me on Twitter [@gmazzap](https://twitter.com/gmazzap) or on "The Loop" Stack Exchange chat.

Well, it's possible I'll ignore rants.