diff --git a/tests/webdriver/PluginActivationCest.php b/tests/webdriver/PluginActivationCest.php index 6715d736e..ce2cdb485 100644 --- a/tests/webdriver/PluginActivationCest.php +++ b/tests/webdriver/PluginActivationCest.php @@ -71,22 +71,8 @@ public function be_able_to_activate_plugins_in_a_long_list(WebDriverTester $I): protected function scaffoldTestPlugins(WebDriverTester $I): void { - $template - = <<< HANDLEBARS -/* -Plugin Name: Plugin {{letter}} -Plugin URI: https://wordpress.org/plugins/{{letter}}/ -Description: Plugin {{letter}} description -Version: 0.1.0 -Author: Plugin {{letter}} author -Author URI: http://example.com/{{letter}}-plugin -Text Domain: {{letter}}_plugin -Domain Path: /languages -*/ -HANDLEBARS; - foreach (range('A', 'Z') as $letter) { - $compiled = str_replace('{{letter}}', $letter, $template); + $compiled = "function {$letter}_main(){}"; $I->havePlugin("plugin-{$letter}/plugin-{$letter}.php", $compiled); } }