-
Notifications
You must be signed in to change notification settings - Fork 14
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
refactor: prepare ExternalContent to use filters on SourceReaders #1334
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…corresponding tests
…onding tests for API interaction
… ID with corresponding tests
…ing tests; update Rule class documentation
…jectInterface and its implementations
refactor: update SyncHandler to use DoActionRefArray refactor: improve SourceReaderFromConfig with dedicated methods
…nc and include related tests
…es with related tests
…ts and update PHPCS exclude pattern
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to improve the
composer.json
file, refactor theApp.php
file, and update test files. The changes focus on adding new dependencies, cleaning up unused imports, improving the setup of external content, and replacing mock objects in tests.Improvements to
composer.json
:unused
to check for unused classes usingclass-leak
and added dependenciesdg/bypass-finals
andtomasvotruba/class-leak
. [1] [2]Refactoring in
App.php
:library/App.php
. [1] [2]setupExternalContent
method to useaddHooks
method instead ofregister
method for better readability and maintainability. [1] [2]Updates to test files:
WpMockFactory::createWpCommentQuery
withWP_Comment_Query
inOptionalHideDiscussionWhenLoggedOut.test.php
. [1] [2] [3] [4]WpMockFactory::createWpdb
withwpdb
inCustomizer.test.php
. [1] [2]Removal of unused class:
PopulateTaxonomySchemaPropertyFieldOptions
class fromlibrary/ExternalContent/AcfFieldContentModifiers/
.Enhancements in
SourceConfig
:FilterDefinition
to theSourceConfig
class and updated the constructor and methods accordingly. [1] [2] [3] [4]SourceConfigFactory
to createSourceConfig
instances withFilterDefinition
. [1] [2]