- 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 |
||
|---|---|---|
| .. | ||
| .github | ||
| docs | ||
| inc | ||
| src | ||
| .gitattributes | ||
| .gitbook.yaml | ||
| .gitignore | ||
| composer.json | ||
| LICENSE | ||
| phpunit.xml.dist | ||
| README.md | ||
README
Brain Monkey
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
- PHP 5.6+
- Composer to install
Via Composer following packages are required:
- mockery/mockery version 1
BSD-3-Clause - antecedent/patchwork version 2
MIT
When installed for development, following packages are also required:
- phpunit/phpunit version 5.7
BSD-3-Clause
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.