← r42421: REST API: Return the proper status code for failed permission callbacks in `WP_REST_Server->dispatch()`.

Failed

Environment

Host Pantheon
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 7.1.12
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.0.23-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 (7.1.12), curl (7.1.12), 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. (7.1.12), gd (7.1.12), mcrypt (7.1.12), mysqli (7.1.12), imagick (3.4.3), pcre (7.1.12), xml (7.1.12), xmlreader (7.1.12), zlib (7.1.12), curl (7.40.0 (x86_64-redhat-linux-gnu) libcurl/7.40.0 NSS/3.21 Basic ECC zlib/1.2.8 libidn/1.32 libssh2/1.5.0), ghostscript (9.20), imagemagick (6.8.8-10), openssl (1.0.1k-fips 8 Jan 2015)

Errors/Failures

0::test_license

Tests_Basic::test_license
license.txt's year needs to be updated to 2018.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'2018'
+'2017'

/srv/bindings/98e77dcff03f4ecdacdff2719ab2dfd3/code/wp-test-runner-176/tests/phpunit/tests/basic.php:17

1::test_get_item_is_not_public

WP_Test_REST_Settings_Controller::test_get_item_is_not_public
Failed asserting that 401 matches expected 403.

/srv/bindings/98e77dcff03f4ecdacdff2719ab2dfd3/code/wp-test-runner-176/tests/phpunit/tests/rest-api/rest-settings-controller.php:51

2::test_get_non_public_taxonomy

WP_Test_REST_Taxonomies_Controller::test_get_non_public_taxonomy
Failed asserting that 401 matches expected 403.

/srv/bindings/98e77dcff03f4ecdacdff2719ab2dfd3/code/wp-test-runner-176/tests/phpunit/includes/testcase-rest-api.php:16
/srv/bindings/98e77dcff03f4ecdacdff2719ab2dfd3/code/wp-test-runner-176/tests/phpunit/tests/rest-api/rest-taxonomies-controller.php:109