Skip to content

Feature/#2275 multisite tests#2375

Merged
jasonbahl merged 8 commits intowp-graphql:developfrom
jasonbahl:feature/#2275-multisite-tests
May 13, 2022
Merged

Feature/#2275 multisite tests#2375
jasonbahl merged 8 commits intowp-graphql:developfrom
jasonbahl:feature/#2275-multisite-tests

Conversation

@jasonbahl
Copy link
Copy Markdown
Collaborator

What does this implement/fix? Explain your changes.

This adds the ability to run unit tests in multisite. This also addresses some bugs related to multisite that were not caught when tests were not running in multisite.

Does this close any currently open issues?

closes #2275

related: #2363

jasonbahl added 4 commits May 12, 2022 13:13
…folding WordPress for tests

- update codeception.yml to use the MULTISITE env var when scaffolding WordPress for tests
- add multisite to the matrix for the testing-integration workflow
…ectionResolver->get_connection() instead of ThemeConnectionResolver::resolve()

- update ThemeConnectionResolver to pass `allowed => null` as an argument to
- update ThemeConnectionQueriesTest to grant the admin user super admin privelages when querying themes. (@todo: add tests for regular admin users in multisite)
…fore trying to resolve it

- add network active and network inactive plugins to the active/inactive plugins_by_status arrays in the plugin connection resolver
- update "is_private" check on the Plugin Model to account for multisite permissions
- update plugin tests to grant admin user super admin privelages (@todo add tests for multisite for regular admin (not super admin)
@jasonbahl jasonbahl added scope: tests Developing unit tests, integration tests, and ensuring coverage scope: build scripts Automating task runners and compilation processes labels May 13, 2022
@jasonbahl jasonbahl requested a review from justlevine May 13, 2022 19:23
@jasonbahl jasonbahl self-assigned this May 13, 2022
@justlevine
Copy link
Copy Markdown
Collaborator

@jasonbahl is there a reason this isnt based on the latest develop?

image

@jasonbahl
Copy link
Copy Markdown
Collaborator Author

I typically start my feature branches off master. 🤷‍♂️

Based on current workflows it probably makes more sense to branch off develop though as develop almost always becomes the next release.

@coveralls
Copy link
Copy Markdown

coveralls commented May 13, 2022

Coverage Status

Coverage increased (+0.2%) to 79.53% when pulling b46e16f on jasonbahl:feature/#2275-multisite-tests into d38d5a9 on wp-graphql:develop.

@qlty-cloud-legacy
Copy link
Copy Markdown

Code Climate has analyzed commit b46e16f and detected 0 issues on this pull request.

View more on Code Climate.

@jasonbahl jasonbahl merged commit 43ff364 into wp-graphql:develop May 13, 2022
This was referenced May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: build scripts Automating task runners and compilation processes scope: tests Developing unit tests, integration tests, and ensuring coverage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setup tests to run in multisite

3 participants