Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions features/post.feature
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,6 @@ Feature: Manage WordPress posts
2005-01-24 09:52:00
"""

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

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

# Separate test because of a known bug in the SQLite plugin.
# See https://github.com/WordPress/sqlite-database-integration/issues/52.
# Once the bug is resolved, this separate test can be removed again.
@require-sqlite
Scenario: Publishing a post and setting a date succeeds if the edit_date flag is passed.
Given a WP install

When I run `wp post create --post_title='test' --porcelain`
Then save STDOUT as {POST_ID}

When I run `wp post update {POST_ID} --post_date='2005-01-24T09:52:00.000Z' --post_status='publish' --edit_date=1`
Then STDOUT should contain:
"""
Success:
"""

When I run `wp post get {POST_ID} --field=post_date`
Then STDOUT should contain:
"""
2005-01-24T09:52:00.000Z
"""

@require-wp-5.0
Scenario: Get block_version field for post with blocks
Given a block-post.html file:
Expand Down
10 changes: 10 additions & 0 deletions features/site-create.feature
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
Feature: Create a new site on a WP multisite

# Skipped on SQLite because of a bug in the SQLite plugin (as of v3.0.0):
# when `MULTISITE` is defined in wp-config.php but the database is still
# empty, the information schema reconstructor queries the `wp_blogs` table
# while establishing the connection. That table does not exist yet, so the
# connection fails with "One or more database tables are unavailable."
# See https://github.com/WordPress/sqlite-database-integration/issues/490.
# Once the bug is resolved, this tag can be removed again.
@skip-sqlite
Scenario: Respect defined `$base` in wp-config
Given an empty directory
And WP files
Expand Down Expand Up @@ -47,6 +55,8 @@ Feature: Create a new site on a WP multisite
| 1 | http://localhost/dev/ |
| 2 | http://localhost/dev/newsite/ |

# See the note on the scenario above for why this is skipped on SQLite.
@skip-sqlite
Scenario: Create new site with custom `$super_admins` global
Given an empty directory
And WP files
Expand Down