From 702ea2263903e2dd27e1d5de623c363ffe6e2205 Mon Sep 17 00:00:00 2001 From: hellofromTonya Date: Mon, 30 Aug 2021 20:19:59 +0000 Subject: [PATCH] Tests: Test custom assertions parameter data type in `WP_UnitTestCase_Base`. The following changes improve tests stability. The `assertEqualFields()` method expects an object and a fields array as inputs and subsequently approaches the received parameters as such, but did not verify whether the received parameters are of the expected types. Along the same lines, the `assertSameSets()`, `assertEqualSets()`, `assertSameSetsWithIndex()` and the `assertEqualSetsWithIndex()` methods all expect arrays for both the actual as well as the expected values and uses the array function `[k]sort()` on both, but never verified that the received inputs were actually arrays, which could lead to PHP errors on the sorting function calls. Follow-up to [30687], [42343], [48937], [48939], [51480], [51481]. Props jrf. See #53363. Built from https://develop.svn.wordpress.org/trunk@51697 git-svn-id: http://core.svn.wordpress.org/trunk@51303 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index b8e52d1017..1c226cd72b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-51695'; +$wp_version = '5.9-alpha-51697'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.