OSDN Git Service

behat: add test for relative 'require:' path in wp-cli.yml
authorscribu <mail@scribu.net>
Tue, 25 Jun 2013 10:20:44 +0000 (13:20 +0300)
committerscribu <mail@scribu.net>
Tue, 25 Jun 2013 10:20:44 +0000 (13:20 +0300)
features/config.feature

index 8381358..a51d366 100644 (file)
@@ -14,8 +14,13 @@ Feature: Have a config file
 
   Scenario: Config file in WP Root
     Given a WP install
+    And a sample.php file:
+      """
+      <?php
+      """
     And a wp-cli.yml file:
       """
+      require: sample.php
       """
 
     When I run `wp --info`
@@ -27,6 +32,9 @@ Feature: Have a config file
     When I run `wp core is-installed`
     Then STDOUT should be empty
 
+    When I run `wp` from 'wp-content'
+    Then STDOUT should not be empty
+
   Scenario: WP in a subdirectory
     Given a WP install in 'core'
     And a wp-cli.yml file: