Skip to content

Commit aed835e

Browse files
committed
Replace variables in step to install plugins
Allows installing plugins from ZIP files residing in PROJECT_DIR
1 parent c40d545 commit aed835e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

features/steps/given.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ function ( $world, $type = 'subdirectory' ) {
134134
'/^these installed and active plugins:$/',
135135
function( $world, $stream ) {
136136
$plugins = implode( ' ', array_map( 'trim', explode( PHP_EOL, (string) $stream ) ) );
137+
$plugins = $world->replace_variables( $plugins );
138+
137139
$world->proc( "wp plugin install $plugins --activate" )->run_check();
138140
}
139141
);

0 commit comments

Comments
 (0)