diff --git a/features/makepot.feature b/features/makepot.feature index 8ea9db64..6de1f3ec 100644 --- a/features/makepot.feature +++ b/features/makepot.feature @@ -80,6 +80,34 @@ Feature: Generate a POT file of a WordPress project # This file is distributed under the same license as the Hello World plugin. """ + Scenario: Use the same license as the plugin + Given an empty foo-plugin directory + And a foo-plugin/foo-plugin.php file: + """ + main_file_data['Plugin Name'] ) ) { - if ( isset( $this->main_file_data['License'] ) ) { + if ( isset( $this->main_file_data['License'] ) && ! empty( $this->main_file_data['License'] ) ) { return sprintf( "Copyright (C) %1\$s %2\$s\nThis file is distributed under the %3\$s.", date( 'Y' ), // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date