-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #393 from ernilambar/fix-readme-empty-license
Show error message for empty license in readme
- Loading branch information
Showing
4 changed files
with
62 additions
and
1 deletion.
There are no files selected for viewing
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
16 changes: 16 additions & 0 deletions
16
tests/phpunit/testdata/plugins/test-plugin-plugin-readme-errors-no-license/load.php
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
/** | ||
* Plugin Name: Test Plugin Readme Errors (no license) | ||
* Plugin URI: https://github.com/WordPress/plugin-check | ||
* Description: Test plugin for the Readme check. | ||
* Requires at least: 6.0 | ||
* Requires PHP: 5.6 | ||
* Version: 1.0.0 | ||
* Author: WordPress Performance Team | ||
* Author URI: https://make.wordpress.org/performance/ | ||
* License: GPLv2 or later | ||
* License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html | ||
* Text Domain: test-plugin-check-errors-no-license | ||
* | ||
* @package test-plugin-check-errors-no-license | ||
*/ |
10 changes: 10 additions & 0 deletions
10
tests/phpunit/testdata/plugins/test-plugin-plugin-readme-errors-no-license/readme.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
=== Test Plugin with readme === | ||
|
||
Contributors: plugin-check | ||
Requires at least: 6.0 | ||
Tested up to: 6.1 | ||
Requires PHP: 5.6 | ||
Stable tag: 1.0.0 | ||
Tags: testing, security | ||
|
||
Plugin description. |
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