Skip to content

Commit 2638a26

Browse files
authored
Fix SQLite tests (#588)
* Skip a couple of tests * Skip db check * Skip tests
1 parent 4142af1 commit 2638a26

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

features/config.feature

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Feature: wp-config.php tests
22

33
# Regression test for https://github.com/wp-cli/extension-command/issues/247
4+
# Only testing on MySQL because the SQLite drop-in is not added to the custom directories in this test.
5+
@require-mysql
46
Scenario: __FILE__ and __DIR__ in wp-config.php don't point into the PHAR filesystem
57
Given a WP installation
68
And a new Phar with the same version

features/requests.feature

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
Feature: Requests integration with both v1 and v2
22

3+
# This test downgrades to WordPress 5.8, but the SQLite plugin requires 6.0+
4+
@require-mysql
35
Scenario: Composer stack with Requests v1
46
Given an empty directory
57
And a composer.json file:
@@ -44,6 +46,8 @@ Feature: Requests integration with both v1 and v2
4446
"""
4547
And STDERR should be empty
4648

49+
# This test downgrades to WordPress 5.8, but the SQLite plugin requires 6.0+
50+
@require-mysql
4751
Scenario: Current version with WordPress-bundled Requests v1
4852
Given a WP installation
4953
And I run `wp core update --version=5.8 --force`
@@ -99,6 +103,8 @@ Feature: Requests integration with both v1 and v2
99103
Success: Installed 1 of 1 plugins.
100104
"""
101105

106+
# Uses `wp db create` which is not yet supported in SQLite.
107+
@require-mysql
102108
Scenario: Composer stack with Requests v1 pulling wp-cli/wp-cli-bundle
103109
Given an empty directory
104110
And a composer.json file:
@@ -150,7 +156,7 @@ Feature: Requests integration with both v1 and v2
150156
And the {RUN_DIR}/vendor/wp-cli/wp-cli/bundle/rmccue/requests directory should exist
151157
And the {RUN_DIR}/vendor/rmccue/requests directory should not exist
152158

153-
When I run `vendor/bin/wp config create --dbname={DB_NAME} --dbuser={DB_USER} --dbpass={DB_PASSWORD} --dbhost={DB_HOST} --extra-php < extra-config.php`
159+
When I run `vendor/bin/wp config create --skip-check --dbname={DB_NAME} --dbuser={DB_USER} --dbpass={DB_PASSWORD} --dbhost={DB_HOST} --extra-php < extra-config.php`
154160
Then STDOUT should be:
155161
"""
156162
Success: Generated 'wp-config.php' file.

0 commit comments

Comments
 (0)