← r50692: Coding Standards: Remove unnecessary `unset()` calls in `WP_Importer` methods.

Failed

Environment

Host Seravo
PHPPHP PHP (PHP: Hypertext Preprocessor) is a general-purpose scripting language especially suited to web development. PHP code is usually processed on a web server by a PHP interpreter. On a web server, the result of the interpreted and executed PHP code would form the whole or part of an HTTP response. Version PHP 8.0.3
DatabaseDatabase A database is an organized collection of data. Access to this data is usually provided by a "database management system" (DBMS) consisting of an integrated set of computer software that allows users to interact with one or more databases and provides access to all of the data contained in the database. Because of the close relationship between them, the term "database" is often used casually to refer to both a database and the DBMS used to manipulate it. Version mysqlMySQL MySQL is an open-source relational database management system (RDBMS). MySQL is free and open-source software under the terms of the GNU General Public License. Ver 15.1 Distrib 10.5.9-MariaDBMariaDB MariaDB is a fork of the MySQL relational database management system (RDBMS), intended to remain free and open-source software under the GNU General Public License. MariaDB intended to maintain high compatibility with MySQL, ensuring a drop-in replacement capability with library binary parity and exact matching with MySQL APIs and commands.
Extensions bcmath (8.0.3), curl (8.0.3), filterFilter Filters are one of the two types of Hooks https://codex.wordpress.org/Plugin_API/Hooks. They provide a way for functions to modify data of other functions. They are the counterpart to Actions. Unlike Actions, filters are meant to work in an isolated manner, and should never have side effects such as affecting global variables and output. (8.0.3), gd (8.0.3), mysqli (8.0.3), imagick (3.4.4), pcre (8.0.3), xml (8.0.3), xmlreader (8.0.3), zlib (8.0.3), curl (7.58.0 (x86_64-pc-linux-gnu) libcurl/7.58.0 OpenSSL/1.1.1g zlib/1.2.11 libidn2/2.0.4 libpsl/0.19.1 (+libidn2/2.0.4) nghttp2/1.30.0 librtmp/2.3), ghostscript (9.26), openssl (1.1.1 11 Sep 2018 (Library: 1.1.1g 21 Apr 2020))

Errors/Failures

Tests_Avatar::test_get_avatar_url_gravatar_url

Tests_Avatar::test_get_avatar_url_gravatar_url
Failed asserting that 1 is identical to 0.

/tmp/wp-test-runner/tests/phpunit/tests/avatar.php:14

Tests_Avatar::test_get_avatar_url_user

Tests_Avatar::test_get_avatar_url_user
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'https://secure.gravatar.com/avatar/?s=96&d=mm&r=g'
+'https://secure.gravatar.com/avatar/96614ec98aa0c0d2ee75796dced6df54?s=96&d=mm&r=g'

/tmp/wp-test-runner/tests/phpunit/tests/avatar.php:81

Tests_DB::test_db_reconnect

Tests_DB::test_db_reconnect
Failed asserting that null is greater than 0.

/tmp/wp-test-runner/tests/phpunit/tests/db.php:58

Tests_DB::test_get_col::test_get_col with data set #0

Tests_DB::test_get_col with data set #0 ('SELECT display_name FROM wptests_users', 'admin', array(), 0)
Failed asserting that an array contains 'admin'.

/tmp/wp-test-runner/tests/phpunit/tests/db.php:594

Tests_DB::test_get_col::test_get_col with data set #1

Tests_DB::test_get_col with data set #1 ('SELECT user_login, user_email..._users', 'admin', array(), 0)
Failed asserting that an array contains 'admin'.

/tmp/wp-test-runner/tests/phpunit/tests/db.php:594

Tests_DB::test_get_col::test_get_col with data set #2

Tests_DB::test_get_col with data set #2 ('SELECT user_login, user_email..._users', 'admin@example.org', array(), 1)
Failed asserting that an array contains 'admin@example.org'.

/tmp/wp-test-runner/tests/phpunit/tests/db.php:594

Tests_DB::test_get_col::test_get_col with data set #3

Tests_DB::test_get_col with data set #3 ('SELECT user_login, user_email..._users', 'admin@example.org', array(), '1')
Failed asserting that an array contains 'admin@example.org'.

/tmp/wp-test-runner/tests/phpunit/tests/db.php:594

Tests_DB::test_get_col::test_get_col with data set #4

Tests_DB::test_get_col with data set #4 ('SELECT user_login, user_email..._users', array(null), array(), 3)
Failed asserting that two arrays are identical.
--- Expected
+++ Actual
@@ @@
-Array &0 (
-    0 => null
-)
+Array &0 ()

/tmp/wp-test-runner/tests/phpunit/tests/db.php:592

Tests_Functions_wpAuthCheck::test_wp_auth_check_user_logged_in

Tests_Functions_wpAuthCheck::test_wp_auth_check_user_logged_in
Failed asserting that false is true.

/tmp/wp-test-runner/tests/phpunit/tests/functions/wpAuthCheck.php:39

Tests_Functions_wpAuthCheck::test_wp_auth_check_user_logged_in_login_grace_period_set

Tests_Functions_wpAuthCheck::test_wp_auth_check_user_logged_in_login_grace_period_set
Failed asserting that false is true.

/tmp/wp-test-runner/tests/phpunit/tests/functions/wpAuthCheck.php:63

Tests_Meta::test_user_metadata_not_exists

Tests_Meta::test_user_metadata_not_exists
Failed asserting that 0 is identical to 1.

/tmp/wp-test-runner/tests/phpunit/tests/meta.php:140

Tests_oEmbed_HTTP_Headers::test_rest_pre_serve_request_headers

Tests_oEmbed_HTTP_Headers::test_rest_pre_serve_request_headers
PHPUnitFrameworkException: sh: 1: convert: not found
sh: 1: convert: not found

Tests_REST_API::test_rest_preload_api_request_embeds_links::test_rest_preload_api_request_embeds_links with data set #0

Tests_REST_API::test_rest_preload_api_request_embeds_links with data set #0 ('_embed=wp:term,author', array('wp:term', 'author'), array('replies'))
Failed asserting that an array has the key 'author'.

/tmp/wp-test-runner/tests/phpunit/tests/rest-api.php:2365

Tests_REST_API::test_rest_preload_api_request_embeds_links::test_rest_preload_api_request_embeds_links with data set #1

Tests_REST_API::test_rest_preload_api_request_embeds_links with data set #1 ('_embed[]=wp:term&_embed[]=author', array('wp:term', 'author'), array('replies'))
Failed asserting that an array has the key 'author'.

/tmp/wp-test-runner/tests/phpunit/tests/rest-api.php:2365

Tests_REST_API::test_rest_preload_api_request_embeds_links::test_rest_preload_api_request_embeds_links with data set #2

Tests_REST_API::test_rest_preload_api_request_embeds_links with data set #2 ('_embed', array('wp:term', 'author', 'replies'), array())
Failed asserting that an array has the key 'author'.

/tmp/wp-test-runner/tests/phpunit/tests/rest-api.php:2365

Tests_REST_API::test_rest_preload_api_request_embeds_links::test_rest_preload_api_request_embeds_links with data set #3

Tests_REST_API::test_rest_preload_api_request_embeds_links with data set #3 ('_embed=1', array('wp:term', 'author', 'replies'), array())
Failed asserting that an array has the key 'author'.

/tmp/wp-test-runner/tests/phpunit/tests/rest-api.php:2365

Tests_REST_API::test_rest_preload_api_request_embeds_links::test_rest_preload_api_request_embeds_links with data set #4

Tests_REST_API::test_rest_preload_api_request_embeds_links with data set #4 ('_embed=true', array('wp:term', 'author', 'replies'), array())
Failed asserting that an array has the key 'author'.

/tmp/wp-test-runner/tests/phpunit/tests/rest-api.php:2365

WP_Test_REST_Comments_Controller::test_get_additional_field_registration

WP_Test_REST_Comments_Controller::test_get_additional_field_registration
Failed asserting that '' matches expected 123.

/tmp/wp-test-runner/tests/phpunit/tests/rest-api/rest-comments-controller.php:3236

WP_Test_REST_Posts_Controller::test_get_additional_field_registration

WP_Test_REST_Posts_Controller::test_get_additional_field_registration
Failed asserting that '' matches expected 123.

/tmp/wp-test-runner/tests/phpunit/tests/rest-api/rest-posts-controller.php:4320

WP_Test_REST_Revisions_Controller::test_get_additional_field_registration

WP_Test_REST_Revisions_Controller::test_get_additional_field_registration
Failed asserting that an array has the key 'my_custom_int'.

/tmp/wp-test-runner/tests/phpunit/tests/rest-api/rest-revisions-controller.php:390

WP_Test_REST_Users_Controller::test_get_items_pagination_headers

WP_Test_REST_Users_Controller::test_get_items_pagination_headers
Failed asserting that 29 is identical to 30.

/tmp/wp-test-runner/tests/phpunit/tests/rest-api/rest-users-controller.php:316

WP_Test_REST_Users_Controller::test_get_items_offset

WP_Test_REST_Users_Controller::test_get_items_offset
Failed asserting that actual size 28 matches expected size 29.

/tmp/wp-test-runner/tests/phpunit/tests/rest-api/rest-users-controller.php:571

WP_Test_REST_Users_Controller::test_get_additional_field_registration

WP_Test_REST_Users_Controller::test_get_additional_field_registration
Failed asserting that an array has the key 'my_custom_int'.

/tmp/wp-test-runner/tests/phpunit/tests/rest-api/rest-users-controller.php:2698

Test_Sitemaps::test_disable_sitemap_should_return_404

Test_Sitemaps::test_disable_sitemap_should_return_404
PHPUnitFrameworkException: sh: 1: convert: not found
sh: 1: convert: not found

Test_Sitemaps::test_empty_url_list_should_return_404

Test_Sitemaps::test_empty_url_list_should_return_404
PHPUnitFrameworkException: sh: 1: convert: not found
sh: 1: convert: not found

Tests_User::test_wp_update_user_should_not_change_password_when_passed_WP_User_instance

Tests_User::test_wp_update_user_should_not_change_password_when_passed_WP_User_instance
Attempt to read property "user_pass" on bool

/tmp/wp-test-runner/tests/phpunit/tests/user.php:583

Tests_User_CountUsers::test_count_users_is_accurate::test_count_users_is_accurate with data set #0

Tests_User_CountUsers::test_count_users_is_accurate with data set #0 ('time')
Failed asserting that 7 is identical to 8.

/tmp/wp-test-runner/tests/phpunit/tests/user/countUsers.php:55

Tests_User_CountUsers::test_count_users_is_accurate::test_count_users_is_accurate with data set #1

Tests_User_CountUsers::test_count_users_is_accurate with data set #1 ('memory')
Failed asserting that 7 is identical to 8.

/tmp/wp-test-runner/tests/phpunit/tests/user/countUsers.php:55

Tests_User_CountUsers::test_count_users_is_accurate_with_multiple_roles::test_count_users_is_accurate_with_multiple_roles with data set #0

Tests_User_CountUsers::test_count_users_is_accurate_with_multiple_roles with data set #0 ('time')
Failed asserting that 2 is identical to 3.

/tmp/wp-test-runner/tests/phpunit/tests/user/countUsers.php:241

Tests_User_CountUsers::test_count_users_is_accurate_with_multiple_roles::test_count_users_is_accurate_with_multiple_roles with data set #1

Tests_User_CountUsers::test_count_users_is_accurate_with_multiple_roles with data set #1 ('memory')
Failed asserting that 2 is identical to 3.

/tmp/wp-test-runner/tests/phpunit/tests/user/countUsers.php:241

Tests_User_ListAuthors::test_wp_list_authors_exclude_admin

Tests_User_ListAuthors::test_wp_list_authors_exclude_admin
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'<li><a href="http://example.org/?author=1" title="Posts by admin">admin</a></li><li><a href="http://example.org/?author=351" title="Posts by bob">bob</a></li><li><a href="http://example.org/?author=354" title="Posts by paul">paul</a></li><li><a href="http://example.org/?author=348" title="Posts by zack">zack</a></li>'
+'<li><a href="http://example.org/?author=351" title="Posts by bob">bob</a></li><li><a href="http://example.org/?author=354" title="Posts by paul">paul</a></li><li><a href="http://example.org/?author=348" title="Posts by zack">zack</a></li>'

/tmp/wp-test-runner/tests/phpunit/tests/user/listAuthors.php:156

Tests_User_Query::test_get_all

Tests_User_Query::test_get_all
Failed asserting that 12 is identical to 13.

/tmp/wp-test-runner/tests/phpunit/tests/user/query.php:140

Tests_User_Query::test_get_total_is_int

Tests_User_Query::test_get_total_is_int
Failed asserting that 12 is identical to 13.

/tmp/wp-test-runner/tests/phpunit/tests/user/query.php:165

Tests_User_Query::test_number

Tests_User_Query::test_number
Failed asserting that 12 is identical to 13.

/tmp/wp-test-runner/tests/phpunit/tests/user/query.php:505

Tests_User_Query::test_nicename__not_in_returns_users_without_included_nicenames

Tests_User_Query::test_nicename__not_in_returns_users_without_included_nicenames
Failed asserting that 9 is identical to 10.

/tmp/wp-test-runner/tests/phpunit/tests/user/query.php:1145

Tests_User_Query::test_login__not_in_returns_users_without_included_logins

Tests_User_Query::test_login__not_in_returns_users_without_included_logins
Failed asserting that 9 is identical to 10.

/tmp/wp-test-runner/tests/phpunit/tests/user/query.php:1246

Tests_User_Query::test_get_multiple_roles_or

Tests_User_Query::test_get_multiple_roles_or
Failed asserting that 7 is identical to 8.

/tmp/wp-test-runner/tests/phpunit/tests/user/query.php:1410

Tests_User_Query::test_role_exclusion

Tests_User_Query::test_role_exclusion
Failed asserting that 10 is identical to 11.

/tmp/wp-test-runner/tests/phpunit/tests/user/query.php:1500

Tests_User_Query::test_role__not_in_user_without_role

Tests_User_Query::test_role__not_in_user_without_role
Failed asserting that 11 is identical to 12.

/tmp/wp-test-runner/tests/phpunit/tests/user/query.php:1571

WP_Test_REST_Autosaves_Controller::test_get_additional_field_registration

WP_Test_REST_Autosaves_Controller::test_get_additional_field_registration
Failed asserting that an array has the key 'my_custom_int'.

/tmp/wp-test-runner/tests/phpunit/tests/rest-api/rest-autosaves-controller.php:506