Commit 6550bc6161 for wordpress.org

commit 6550bc61617e89cbf8a78a466899f0fa5bf68643
Author: westonruter <westonruter@git.wordpress.org>
Date:   Thu Sep 24 19:34:47 2026 +0000

    Build/Test Tools: Assert insertion failures without the factories.

    Several tests triggered a failure by creating a fixture through a unit test factory and then asserting that the factory returned a `WP_Error`. These now call the function under test directly, whether `wp_insert_post()`, `wp_insert_term()`, `wp_insert_user()` or `_wp_put_post_revision()`, and pin the expected error code, so each test fails on the error it is actually about rather than on any error at all.

    The invalid date cases in `Tests_Post_wpInsertPost` also gain a post title. With no title, content or excerpt, `wp_insert_post()` returned early with `empty_content` before it ever resolved the date, so those cases were passing on the wrong error. The duplicate term name test now also asserts the unique slugs its successful insertions produce.

    Across the rest of the suite, assertions that only guarded against a factory returning a `WP_Error` are removed, such as `assertNotWPError()` and `assertIsInt()` checks on fixtures that are created successfully.

    This prepares for a follow-up commit which makes the unit test factories throw an exception instead of returning a `WP_Error`. That leaves nothing for those guards to catch, and the tests rewritten here would otherwise not survive it.

    Developed as subset of https://github.com/WordPress/wordpress-develop/pull/13612.
    Follow-up to r29196, r34646, r45858, r50012, r51124.

    Props faisalahammad, westonruter.
    See #66111.

    Built from https://develop.svn.wordpress.org/trunk@63924


    git-svn-id: http://core.svn.wordpress.org/trunk@63090 1a063a9b-81f0-0310-95a4-ce76da25c4cd

diff --git a/wp-includes/version.php b/wp-includes/version.php
index 4be0721f64..ebc0507d05 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '7.2-alpha-63919';
+$wp_version = '7.2-alpha-63924';

 /**
  * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.