Yoast / yoast-acf-analysis

WordPress plugin that adds the content of all ACF fields to the Yoast SEO score analysis.
https://wordpress.org/plugins/acf-content-analysis-for-yoast-seo/
GNU General Public License v3.0
62 stars 20 forks source link

Composer: update BrainMonkey with dependencies #280

Closed jrfnl closed 3 years ago

jrfnl commented 3 years ago

Summary

This PR can be summarized in the following changelog entry:

Relevant technical choices:

Composer: update BrainMonkey with dependencies

Updated:

Refs:

Tests: update for changed BrainMonkey has_filter/has_action() behaviour

The WP native has_filter() and has_action() functions return a boolean if no function name is given, or the priority as an integer if a specific function is being checked or false if the function is not attached.

The BrainMonkey mock of the has_filter() and has_action() functions previously always returned a boolean.

As of version 2.5.0, they will emulate the WP native functions better and return the priority.

This updates the affected tests to check based on the new behaviour of the mock.

Refs:

Test instructions

This PR can be tested by following these steps: