Try replacing Hello Dolly with something else

This commit is contained in:
Pascal Birchler 2025-09-04 11:18:33 +02:00
parent 28abef8ddc
commit a11cc14527
No known key found for this signature in database
GPG key ID: 0DECE73DD74E8B2F

View file

@ -209,12 +209,20 @@ Feature: Scaffold plugin unit tests


Scenario: Scaffold plugin tests with invalid slug Scenario: Scaffold plugin tests with invalid slug
Given a WP install Given a WP install
Then the {RUN_DIR}/wp-content/plugins/hello.php file should exist And a wp-content/plugins/foo.php file:
"""
<?php
/**
* Plugin Name: Foo
* Description: Foo plugin
*/
"""
Then the {RUN_DIR}/wp-content/plugins/foo.php file should exist


When I try `wp scaffold plugin-tests hello` When I try `wp scaffold plugin-tests foo`
Then STDERR should be: Then STDERR should be:
""" """
Error: Invalid plugin slug specified. No such target directory '{RUN_DIR}/wp-content/plugins/hello'. Error: Invalid plugin slug specified. No such target directory '{RUN_DIR}/wp-content/plugins/foo'.
""" """
And the return code should be 1 And the return code should be 1