-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ACF connector test implemented and ACF v5.x support added #1118
Conversation
@kidunot89 my only concern here is requiring the ACF plugin from Composer for development. If we were to follow this same practice, we could end up with a ton of WordPress plugins we are adding the the Composer config, which are not really required for development, but rather for testing. Installing of these plugins for the PHPUnit tests may better be served in some other scripted process for testing, but would like to hear your thoughts on why this method is prefered. |
@kopepasah Yes, My plan is to add all the plugins, supported by stream through connectors, to the |
@kidunot89 I suspect the failing unit tests are caused by wp-dev-lib copying over the project source files to a different place for the actual test run: So none of the dependencies (plugins) are moved over to the same I guess at this point we can switch to using the Docker test environment on Travis too. There are ways to cache the Docker images once they're built so we should be fine. |
37810e9
to
ef3cb53
Compare
@kidunot89 Unfortunately this is another issue with wp-dev-lib -- those tests are passing because it didn't even run the tests https://travis-ci.com/github/xwp/stream/jobs/355627134#L490 -- the |
78b4be1
to
90a4f06
Compare
@kidunot89 just a quick question, regarding ACF v5. Do we need to perform any version checks for backwards compatibility or does the functionality simply not exist pre-v5? |
@kopepasah Pre-v5 functionality exists, it's just not tested, or updated. |
Thanks for that information! It is difficult to tell, just by reviewing, which parts are pre-v5 and remain backwards compatible, but as long as you are aware, then that can be resolved when testing the changes. I added my review and requested just a few changes. |
@kopepasah I'll add notes in the doc blocks for the pre ACF-v5 callbacks. |
99da7e2
to
7cd58da
Compare
698c375
to
3bf0655
Compare
3bf0655
to
83f49f3
Compare
This looks good @kidunot89! Feel free to merge if there is nothing to add. |
Partially fixes #1093
Fixes and closes #1122
Summary
wpackagist
repository andwpackagist-plugin/advanced-custom-fields
dev dependency to thecomposer.json
.bootstrap
file to activate plugins defined in the PHPUnit constWP_TEST_ACTIVATED_PLUGINS