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
61 stars 20 forks source link

Travis: re-enable running the unit tests #166

Closed jrfnl closed 5 years ago

jrfnl commented 5 years ago

Summary

This PR can be summarized in the following changelog entry:

Relevant technical choices:

Looks like PR #142 inadvertently disabled the unit tests as the test files are no longer PSR-4 compliant and the name suffix check done by PHPUnit may or may not be case-sensitive. Mea culpa.

These minor changes should re-enable them.

Note: The acf.php dummy file is explicitly excluded from being autoloaded as the Yoast_ACF_Analysis_Dependency_ACF class does a class_exists() without setting the $autoload parameter to false. As this may actually be advantageous in a situation were WP plugins are being installed via Composer, I've elected not to change that function call, but to exclude the test dummy file from the autoload class map instead.

Test instructions

This PR can be tested by following these steps: