Skip to content

Commit 41a409d

Browse files
swissspidyclaude
andauthored
Adapt Behat tests to SQLite integration plugin v3.0.0 (#635)
Co-authored-by: Claude Opus 5 <noreply@anthropic.com> Co-authored-by: Claude <noreply@anthropic.com>
1 parent 893fbd6 commit 41a409d

2 files changed

Lines changed: 10 additions & 23 deletions

File tree

‎features/post.feature‎

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,6 @@ Feature: Manage WordPress posts
526526
2005-01-24 09:52:00
527527
"""
528528

529-
@require-mysql
530529
Scenario: Publishing a post and setting a date succeeds if the edit_date flag is passed.
531530
Given a WP install
532531

@@ -545,28 +544,6 @@ Feature: Manage WordPress posts
545544
2005-01-24 09:52:00
546545
"""
547546

548-
# Separate test because of a known bug in the SQLite plugin.
549-
# See https://github.com/WordPress/sqlite-database-integration/issues/52.
550-
# Once the bug is resolved, this separate test can be removed again.
551-
@require-sqlite
552-
Scenario: Publishing a post and setting a date succeeds if the edit_date flag is passed.
553-
Given a WP install
554-
555-
When I run `wp post create --post_title='test' --porcelain`
556-
Then save STDOUT as {POST_ID}
557-
558-
When I run `wp post update {POST_ID} --post_date='2005-01-24T09:52:00.000Z' --post_status='publish' --edit_date=1`
559-
Then STDOUT should contain:
560-
"""
561-
Success:
562-
"""
563-
564-
When I run `wp post get {POST_ID} --field=post_date`
565-
Then STDOUT should contain:
566-
"""
567-
2005-01-24T09:52:00.000Z
568-
"""
569-
570547
@require-wp-5.0
571548
Scenario: Get block_version field for post with blocks
572549
Given a block-post.html file:

‎features/site-create.feature‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
Feature: Create a new site on a WP multisite
22

3+
# Skipped on SQLite because of a bug in the SQLite plugin (as of v3.0.0):
4+
# when `MULTISITE` is defined in wp-config.php but the database is still
5+
# empty, the information schema reconstructor queries the `wp_blogs` table
6+
# while establishing the connection. That table does not exist yet, so the
7+
# connection fails with "One or more database tables are unavailable."
8+
# See https://github.com/WordPress/sqlite-database-integration/issues/490.
9+
# Once the bug is resolved, this tag can be removed again.
10+
@skip-sqlite
311
Scenario: Respect defined `$base` in wp-config
412
Given an empty directory
513
And WP files
@@ -47,6 +55,8 @@ Feature: Create a new site on a WP multisite
4755
| 1 | http://localhost/dev/ |
4856
| 2 | http://localhost/dev/newsite/ |
4957
58+
# See the note on the scenario above for why this is skipped on SQLite.
59+
@skip-sqlite
5060
Scenario: Create new site with custom `$super_admins` global
5161
Given an empty directory
5262
And WP files

0 commit comments

Comments
 (0)