--- /dev/null
+Feature: Have a config file
+
+ Scenario: No config file
+ Given a WP install
+ """
+ """
+
+ When I run `wp --info`
+ Then it should run without errors
+ And STDOUT should not contain:
+ """
+ wp-cli.yml
+ """
+
+ Scenario: Config file in WP Root
+ Given a WP install
+ And a wp-cli.yml file:
+ """
+ """
+
+ When I run `wp --info`
+ Then it should run without errors
+ And STDOUT should contain:
+ """
+ wp-cli.yml
+ """
}
);
+$steps->Given( '/^a ([^\s]+) file:$/',
+ function ( $world, $path, PyStringNode $content ) {
+ file_put_contents( $world->get_path( $path ), (string) $content );
+ }
+);
+
$steps->Given( '/^WP files$/',
function ( $world ) {
$world->download_wordpress_files();