mirrored from git://develop.git.wordpress.org/
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
60114 deprecated class #5800
Open
pbearne
wants to merge
12
commits into
WordPress:trunk
Choose a base branch
from
pbearne:60114-_deprecated_class
base: trunk
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
60114 deprecated class #5800
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
Extended the PHPUnit test suite for the 'doingItWrong' function in WordPress. Added more comprehensive test cases, including the setup phase and validation for the error notice. These improvements enhance code quality by ensuring that the function behaves as expected under varying conditions.
Removed unnecessary actions in the 'doingItWrong' PHPUnit test setup. The setup is simplified for a cleaner and more focused testing of the 'doingItWrong' function. This streamlining allows for accurate and effective evaluation of the function's overall performance and expected behavior.
Renamed 'doingItWrong' PHPUnit test file and class to 'deprecatedHook' to match its function testing. Adjusted all method names, action hooks, comments, and tested functionalities inside test methods to focus on the '__deprecated_hook' function. This is a pivotal change for a more precise assessment of '__deprecated_hook' function's behavior and performance under varying scenarios.
… 'deprecatedArgument' to represent the actual function being tested. All related method names, action hooks, comments, and functionality within the test methods have been adjusted to focus on the '_deprecated_argument' function. This change allows for a more accurate evaluation of the '_deprecated_argument' function's behavior and performance.
…ile' to better reflect the functionality being tested. All relevant method names, hooks, comments, and tests have been updated accordingly. This refactoring allows more accurate and specific testing of the '_deprecated_file' function.
A typo was detected and fixed in the phpunit test file 'deprecatedClass.php'. The underscore separating '_deprecated_class' and 'function' in the method comments section was missing, which could lead to readability issues.
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
Co-authored-by: Mukesh Panchal <[email protected]>
Co-authored-by: Mukesh Panchal <[email protected]>
Co-authored-by: Mukesh Panchal <[email protected]>
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.
Trac ticket: https://core.trac.wordpress.org/ticket/60114