From 40deddeba9d8a572b4e51673e605674933860852 Mon Sep 17 00:00:00 2001 From: scribu Date: Fri, 3 May 2013 23:57:40 +0300 Subject: [PATCH] behat: set different db prefix for subdir install --- features/bootstrap/FeatureContext.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/features/bootstrap/FeatureContext.php b/features/bootstrap/FeatureContext.php index ab61ffe5..1245620f 100644 --- a/features/bootstrap/FeatureContext.php +++ b/features/bootstrap/FeatureContext.php @@ -164,7 +164,9 @@ class FeatureContext extends BehatContext implements ClosuredContextInterface { $this->create_db(); $this->create_empty_dir(); $this->download_wordpress_files( $subdir ); - $this->proc( 'core config' )->run_check( $subdir ); + + $this->proc( 'core config', array( 'dbprefix' => $subdir ? $subdir : 'wp_' ) )->run_check( $subdir ); + $this->proc( 'core install' )->run_check( $subdir ); } } -- 2.11.0