[wp-trac] [WordPress Trac] #56617: WordPress database error when running PHPUnit tests
WordPress Trac
noreply at wordpress.org
Wed Sep 21 19:11:07 UTC 2022
#56617: WordPress database error when running PHPUnit tests
------------------------------+-----------------------------
Reporter: bjorsch | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version: trunk
Severity: normal | Keywords:
Focuses: |
------------------------------+-----------------------------
When running PHPUnit tests, a database error is reported before the first
test is run
{{{
WordPress database error Table 'wordpress_tests.wptests_posts' doesn't
exist for query
SELECT wptests_posts.*
FROM wptests_posts
WHERE 1=1 AND (
0 = 1
) AND wptests_posts.post_type = 'wp_template_part' AND
((wptests_posts.post_status = 'publish'))
GROUP BY wptests_posts.ID
ORDER BY wptests_posts.post_date DESC
made by require_once('wp-settings.php'),
do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters,
register_block_core_template_part, build_template_part_block_variations,
build_template_part_block_instance_variations, get_block_templates,
WP_Query->__construct, WP_Query->query, WP_Query->get_posts
<div id="error"><p class="wpdberror"><strong>WordPress database
error:</strong> [Table 'wordpress_tests.wptests_posts'
doesn't exist]<br /><code>
SELECT wptests_posts.*
FROM wptests_posts
WHERE 1=1 AND (
0 = 1
) AND wptests_posts.post_type = 'wp_template_part' AND
((wptests_posts.post_status = 'publish'))
GROUP BY wptests_posts.ID
ORDER BY wptests_posts.post_date DESC
</code></p></div>Installing...
}}}
Bisecting indicates that this began with https://github.com/WordPress
/wordpress-develop/commit/3b63a75108b7f6d5e9112c556285ab1bc80ddbcf
This seems very similar to #55632, but likely a slightly different cause.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56617>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list