Skip to content

Commit

Permalink
Add feature test for unsupported plugin name
Browse files Browse the repository at this point in the history
  • Loading branch information
ernilambar committed Dec 10, 2024
1 parent 17dbf42 commit 54a8faa
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/behat/features/plugin-check.feature
Original file line number Diff line number Diff line change
Expand Up @@ -719,3 +719,27 @@ Feature: Test that the WP-CLI command works.
"""
readme_invalid_contributors
"""

Scenario: Check unsupported plugin name in plugin header field.
Given a WP install with the Plugin Check plugin
And a wp-content/plugins/foo-sample/foo-sample.php file:
"""
<?php
/**
* Plugin Name: अद्भुत प्लगिन
* Plugin URI: https://foo-sample.com
* Description: Custom plugin.
* Version: 0.1.0
* Author: WordPress Performance Team
* Author URI: https://make.wordpress.org/performance/
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*/
"""

When I run the WP-CLI command `plugin check foo-sample`
Then STDOUT should contain:
"""
plugin_header_unsupported_plugin_name
"""

0 comments on commit 54a8faa

Please sign in to comment.