-
Notifications
You must be signed in to change notification settings - Fork 83
Check Mismatched Tested up to #1135
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
fed8932
Check Mismatched Tested up to
davidperezgar be7d339
fixes
davidperezgar bf27efb
updated for code quality
davidperezgar 81a9469
fix lint issues
davidperezgar b4e16f0
moved tests for simplicity
davidperezgar 92f41b2
different approach
davidperezgar 24ff9c5
fixes
davidperezgar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
6 changes: 3 additions & 3 deletions
6
includes/Traits/Find_Readme.php → includes/Traits/Readme_Utils.php
This file contains hidden or 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
17 changes: 17 additions & 0 deletions
17
tests/phpunit/testdata/plugins/test-plugin-tested-up-to-header-only/load.php
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| <?php | ||
| /** | ||
| * Plugin Name: Test Plugin Tested Up To Header Only | ||
| * Plugin URI: https://github.com/WordPress/plugin-check | ||
| * Description: Test plugin with "Tested up to" only in header. | ||
| * Requires at least: 6.0 | ||
| * Requires PHP: 7.4 | ||
| * Tested up to: 6.7 | ||
| * Version: 1.0.0 | ||
| * Author: WordPress Performance Team | ||
| * Author URI: https://make.wordpress.org/performance/ | ||
| * License: GPL-2.0-or-later | ||
| * License URI: https://www.gnu.org/licenses/gpl-2.0.html | ||
| * Text Domain: test-plugin-tested-up-to-header-only | ||
| * | ||
| * @package test-plugin-tested-up-to-header-only | ||
| */ |
11 changes: 11 additions & 0 deletions
11
tests/phpunit/testdata/plugins/test-plugin-tested-up-to-header-only/readme.txt
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| === Test Plugin Tested Up To Header Only === | ||
|
|
||
| Contributors: plugin-check | ||
| Requires at least: 6.0 | ||
| Requires PHP: 7.4 | ||
| Stable tag: 1.0.0 | ||
| License: GPL-2.0-or-later | ||
| License URI: https://www.gnu.org/licenses/gpl-2.0.html | ||
| Tags: testing | ||
|
|
||
| Plugin with "Tested up to" only in plugin header - no "Tested up to" in readme. |
17 changes: 17 additions & 0 deletions
17
tests/phpunit/testdata/plugins/test-plugin-tested-up-to-match/load.php
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| <?php | ||
| /** | ||
| * Plugin Name: Test Plugin Tested Up To Match | ||
| * Plugin URI: https://github.com/WordPress/plugin-check | ||
| * Description: Test plugin with matching "Tested up to" headers. | ||
| * Requires at least: 6.0 | ||
| * Requires PHP: 7.4 | ||
| * Tested up to: 6.7 | ||
| * Version: 1.0.0 | ||
| * Author: WordPress Performance Team | ||
| * Author URI: https://make.wordpress.org/performance/ | ||
| * License: GPL-2.0-or-later | ||
| * License URI: https://www.gnu.org/licenses/gpl-2.0.html | ||
| * Text Domain: test-plugin-tested-up-to-match | ||
| * | ||
| * @package test-plugin-tested-up-to-match | ||
| */ |
12 changes: 12 additions & 0 deletions
12
tests/phpunit/testdata/plugins/test-plugin-tested-up-to-match/readme.txt
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| === Test Plugin Tested Up To Match === | ||
|
|
||
| Contributors: plugin-check | ||
| Requires at least: 6.0 | ||
| Tested up to: 6.7 | ||
| Requires PHP: 7.4 | ||
| Stable tag: 1.0.0 | ||
| License: GPL-2.0-or-later | ||
| License URI: https://www.gnu.org/licenses/gpl-2.0.html | ||
| Tags: testing | ||
|
|
||
| Plugin with matching "Tested up to" headers - both readme and plugin header have 6.7. |
17 changes: 17 additions & 0 deletions
17
tests/phpunit/testdata/plugins/test-plugin-tested-up-to-mismatch/load.php
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| <?php | ||
| /** | ||
| * Plugin Name: Test Plugin Tested Up To Mismatch | ||
| * Plugin URI: https://github.com/WordPress/plugin-check | ||
| * Description: Test plugin with mismatched "Tested up to" headers. | ||
| * Requires at least: 6.0 | ||
| * Requires PHP: 7.4 | ||
| * Tested up to: 6.5 | ||
| * Version: 1.0.0 | ||
| * Author: WordPress Performance Team | ||
| * Author URI: https://make.wordpress.org/performance/ | ||
| * License: GPL-2.0-or-later | ||
| * License URI: https://www.gnu.org/licenses/gpl-2.0.html | ||
| * Text Domain: test-plugin-tested-up-to-mismatch | ||
| * | ||
| * @package test-plugin-tested-up-to-mismatch | ||
| */ |
12 changes: 12 additions & 0 deletions
12
tests/phpunit/testdata/plugins/test-plugin-tested-up-to-mismatch/readme.txt
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| === Test Plugin Tested Up To Mismatch === | ||
|
|
||
| Contributors: plugin-check | ||
| Requires at least: 6.0 | ||
| Tested up to: 6.7 | ||
| Requires PHP: 7.4 | ||
| Stable tag: 1.0.0 | ||
| License: GPL-2.0-or-later | ||
| License URI: https://www.gnu.org/licenses/gpl-2.0.html | ||
| Tags: testing | ||
|
|
||
| Plugin with mismatched "Tested up to" headers - readme has 6.7, plugin header has 6.5. |
16 changes: 16 additions & 0 deletions
16
tests/phpunit/testdata/plugins/test-plugin-tested-up-to-readme-only/load.php
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| <?php | ||
| /** | ||
| * Plugin Name: Test Plugin Tested Up To Readme Only | ||
| * Plugin URI: https://github.com/WordPress/plugin-check | ||
| * Description: Test plugin with "Tested up to" only in readme. | ||
| * Requires at least: 6.0 | ||
| * Requires PHP: 7.4 | ||
| * Version: 1.0.0 | ||
| * Author: WordPress Performance Team | ||
| * Author URI: https://make.wordpress.org/performance/ | ||
| * License: GPL-2.0-or-later | ||
| * License URI: https://www.gnu.org/licenses/gpl-2.0.html | ||
| * Text Domain: test-plugin-tested-up-to-readme-only | ||
| * | ||
| * @package test-plugin-tested-up-to-readme-only | ||
| */ |
12 changes: 12 additions & 0 deletions
12
tests/phpunit/testdata/plugins/test-plugin-tested-up-to-readme-only/readme.txt
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| === Test Plugin Tested Up To Readme Only === | ||
|
|
||
| Contributors: plugin-check | ||
| Requires at least: 6.0 | ||
| Tested up to: 6.7 | ||
| Requires PHP: 7.4 | ||
| Stable tag: 1.0.0 | ||
| License: GPL-2.0-or-later | ||
| License URI: https://www.gnu.org/licenses/gpl-2.0.html | ||
| Tags: testing | ||
|
|
||
| Plugin with "Tested up to" only in readme - no "Tested up to" in plugin header. |
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.