- 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
42 lines
1.6 KiB
Markdown
42 lines
1.6 KiB
Markdown
# README
|
|
|
|
## Brain Monkey
|
|
|
|
[](https://github.com/Brain-WP/BrainMonkey/actions?query=workflow%3A%22PHP+Quality+Assurance%22)
|
|
[](https://codecov.io/gh/Brain-WP/BrainMonkey)
|
|
|
|
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](https://getcomposer.org/) to install
|
|
|
|
Via Composer following packages are required:
|
|
|
|
* [mockery/mockery](https://packagist.org/packages/mockery/mockery) version 1 \(BSD-3-Clause\)
|
|
* [antecedent/patchwork](https://packagist.org/packages/antecedent/patchwork) version 2 \(MIT\)
|
|
|
|
When installed for development, following packages are also required:
|
|
|
|
* [phpunit/phpunit](https://packagist.org/packages/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"](https://chat.stackexchange.com/rooms/6/the-loop) \(Stack Exchange\) chat.
|
|
|
|
Well, it's possible I'll ignore rants.
|
|
|