@@ -293,7 +293,7 @@ Feature: Test that WP-CLI Behat steps work as expected
293293 Scenario : Test WP database step
294294 Given a WP installation
295295 And a database
296- When I run `{MYSQL_BINARY} --host={DB_HOST} --user={DB_USER} --password={DB_PASSWORD} --execute="SELECT 1;" `
296+ When I run `{MYSQL_BINARY} --host={DB_HOST} --user={DB_USER} --password={DB_PASSWORD} {DB_NAME} --execute="SELECT 1;" `
297297 Then the return code should be 0
298298
299299 @require-wp
@@ -321,7 +321,7 @@ Feature: Test that WP-CLI Behat steps work as expected
321321 When I run `echo '{"name":"test","value":"example.com"}' `
322322 Then STDOUT should be JSON containing:
323323 """
324- "example.com "
324+ "name "
325325 """
326326
327327 Scenario : Test CSV output
@@ -332,10 +332,10 @@ Feature: Test that WP-CLI Behat steps work as expected
332332 """
333333
334334 Scenario : Test YAML output
335- When I run `printf "name: test\n version: 1.0\n PHP binary: /usr/bin/php " `
335+ When I run `printf "name: test\n version: 1.0" `
336336 Then STDOUT should be YAML containing:
337337 """
338- PHP binary:
338+ name: test
339339 """
340340
341341 @require-wp
@@ -433,18 +433,7 @@ Feature: Test that WP-CLI Behat steps work as expected
433433 wp-cli/wp-cli
434434 """
435435
436- @require-wp @require-php-server
437- Scenario : Test PHP built-in web server
438- Given a WP installation
439- And a PHP built-in web server
440- Then the HTTP status code should be 200
441436
442- @require-wp @require-php-server
443- Scenario : Test PHP built-in web server with subdirectory
444- Given an empty directory
445- And a WP installation in 'wordpress'
446- And a PHP built-in web server to serve 'wordpress'
447- Then the HTTP status code should be 200
448437
449438 Scenario : Test STDOUT should be empty
450439 When I run `echo -n "" `
@@ -474,13 +463,13 @@ Feature: Test that WP-CLI Behat steps work as expected
474463 """
475464 And STDERR should not be empty
476465
477- Scenario : Test file path with RUN_DIR variable
466+ Scenario : Test file path with nested directory
478467 Given an empty directory
479- And a {RUN_DIR}/ nested.txt file:
468+ And a nested/path/file .txt file:
480469 """
481470 content
482471 """
483- Then the {RUN_DIR}/ nested.txt file should contain:
472+ Then the nested/path/file .txt file should contain:
484473 """
485474 content
486475 """
@@ -592,17 +581,7 @@ Feature: Test that WP-CLI Behat steps work as expected
592581
593582
594583
595- @require-phar-download
596- Scenario: Test downloaded Phar with specific version
597- Given an empty directory
598- And a downloaded Phar with version "2.11.0"
599- Then the wp-cli.phar file should exist
600584
601- @require-phar-download
602- Scenario: Test downloaded Phar with same version
603- Given an empty directory
604- And a downloaded Phar with the same version
605- Then the wp-cli.phar file should exist
606585
607586 Scenario: Test variable naming conventions
608587 When I run `echo "value1"`
@@ -635,8 +614,12 @@ Feature: Test that WP-CLI Behat steps work as expected
635614 """
636615
637616 Scenario: Test built-in variables
638- When I run `echo {RUN_DIR}`
639- Then STDOUT should not be empty
617+ Given an empty directory
618+ When I run `pwd`
619+ Then STDOUT should contain:
620+ """
621+ {RUN_DIR}
622+ """
640623
641624 Scenario: Test CACHE_DIR variable
642625 Given an empty cache
0 commit comments