Skip to content

Commit e2c2f8a

Browse files
committed
Use WP-CLI for SQLite test hash checks
Skip WordPress loading so hashing after database deletion does not recreate the database.
1 parent 7e327c8 commit e2c2f8a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎features/db-sqlite-path.feature‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Feature: Select the configured SQLite database for file operations
3030
And I try `wp eval 'echo "ready";'`
3131
Then the return code should be 0
3232

33-
When I run `php -r "echo md5_file( 'other.sqlite' );"`
33+
When I run `wp eval 'echo md5_file( "other.sqlite" );' --skip-wordpress`
3434
Then save STDOUT as {OTHER_HASH}
3535

3636
When I try `wp db export selected.sql`
@@ -48,7 +48,7 @@ Feature: Select the configured SQLite database for file operations
4848
Then the return code should be 0
4949
And the selected.sqlite file should not exist
5050

51-
When I run `php -r "echo md5_file( 'other.sqlite' );"`
51+
When I run `wp eval 'echo md5_file( "other.sqlite" );' --skip-wordpress`
5252
Then STDOUT should be:
5353
"""
5454
{OTHER_HASH}

0 commit comments

Comments
 (0)