OSDN Git Service

behat: set custom port only in that specific test, since multisite installs don't...
authorscribu <mail@scribu.net>
Tue, 25 Jun 2013 20:18:28 +0000 (23:18 +0300)
committerscribu <mail@scribu.net>
Tue, 25 Jun 2013 20:18:28 +0000 (23:18 +0300)
features/bootstrap/FeatureContext.php
features/core.feature

index 40928fc..25836cc 100644 (file)
@@ -51,13 +51,6 @@ class FeatureContext extends BehatContext implements ClosuredContextInterface {
                self::$additional_args = array(
                        'wp core config' => self::$db_settings,
 
-                       'wp core install' => array(
-                               'url' => 'http://localhost:8001',
-                               'title' => 'WP CLI Site',
-                               'admin_email' => 'admin@example.com',
-                               'admin_password' => 'password1'
-                       ),
-
                        'wp core install-network' => array(
                                'title' => 'WP CLI Network'
                        )
@@ -191,7 +184,14 @@ class FeatureContext extends BehatContext implements ClosuredContextInterface {
 
                $this->proc( 'wp core config', array( 'dbprefix' => $subdir ? $subdir : 'wp_' ) )->run_check( $subdir );
 
-               $this->proc( 'wp core install' )->run_check( $subdir );
+               $install_args = array(
+                       'url' => 'http://example.com',
+                       'title' => 'WP CLI Site',
+                       'admin_email' => 'admin@example.com',
+                       'admin_password' => 'password1'
+               );
+
+               $this->proc( 'wp core install', $install_args )->run_check( $subdir );
        }
 }
 
index cbbf657..c047704 100644 (file)
@@ -81,7 +81,7 @@ Feature: Manage WordPress installation
       Run `wp core install`.
       """
 
-    When I run `wp core install`
+    When I run `wp core install --url='localhost:8001' --title='Test' --admin_email=admin@example.com --admin_password=1`
     Then STDOUT should not be empty
 
     When I run `wp eval 'echo home_url();'`