Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Fix unit tests with WordPress 5.0 #284

Merged
merged 5 commits into from
Dec 4, 2018
Merged

Conversation

westonruter
Copy link
Contributor

@westonruter westonruter commented Oct 22, 2018

  • Test from latest core branches instead of initial major point release.
  • Prevent loading Gutenberg plugin if on 5.0.

This fixes a fatal error when running tests on the 5.0 branch:

PHP Fatal error: Cannot declare class WP_REST_Autosaves_Controller, because the name is already in use in ...wp-content/plugins/gutenberg/lib/class-wp-rest-autosaves-controller.php on line 387

@westonruter westonruter changed the title Prevent loading Gutenberg from WP_TEST_ACTIVATED_PLUGINS if merged [WIP] Prevent loading Gutenberg from WP_TEST_ACTIVATED_PLUGINS if merged Oct 23, 2018
@westonruter westonruter force-pushed the update/activated-plugins branch from 0a736e0 to 291a1c8 Compare October 23, 2018 04:53
@westonruter westonruter changed the title [WIP] Prevent loading Gutenberg from WP_TEST_ACTIVATED_PLUGINS if merged Fix unit tests with WordPress 5.0 Oct 23, 2018
check-diff.sh Outdated Show resolved Hide resolved
check-diff.sh Show resolved Hide resolved
@westonruter westonruter merged commit c21a863 into master Dec 4, 2018
@kasparsd kasparsd deleted the update/activated-plugins branch December 4, 2018 22:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants