From 4212d597c521b5fbea113ee6feacc79186c61550 Mon Sep 17 00:00:00 2001 From: jeremyfelt Date: Sun, 16 Dec 2018 01:40:02 +0000 Subject: [PATCH] REST API: Fix array syntax after [43851]. I thought I was writing JavaScript. Alas. Merges [43852] from the 5.0 branch to trunk. Props danielbachhuber. See #45196. git-svn-id: https://develop.svn.wordpress.org/trunk@44218 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/rest-api/rest-schema-setup.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/phpunit/tests/rest-api/rest-schema-setup.php b/tests/phpunit/tests/rest-api/rest-schema-setup.php index 46d15c3c7c..ecbf1b6fdb 100644 --- a/tests/phpunit/tests/rest-api/rest-schema-setup.php +++ b/tests/phpunit/tests/rest-api/rest-schema-setup.php @@ -616,22 +616,22 @@ class WP_Test_REST_Schema_Initialization extends WP_Test_REST_TestCase { 'TaxonomiesCollection.post_tag._links.wp:items.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/tags', 'CategoriesCollection.0.link' => 'http://example.org/?cat=1', 'CategoriesCollection.0.meta.test_single' => '', - 'CategoriesCollection.0.meta.test_multi' => [], + 'CategoriesCollection.0.meta.test_multi' => array(), 'CategoriesCollection.0.meta.test_cat_single' => '', - 'CategoriesCollection.0.meta.test_cat_multi' => [], + 'CategoriesCollection.0.meta.test_cat_multi' => array(), 'CategoriesCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/categories/1', 'CategoriesCollection.0._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/categories', 'CategoriesCollection.0._links.about.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/taxonomies/category', 'CategoriesCollection.0._links.wp:post_type.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fposts&categories=1', 'CategoryModel.link' => 'http://example.org/?cat=1', 'CategoryModel.meta.test_single' => '', - 'CategoryModel.meta.test_multi' => [], + 'CategoryModel.meta.test_multi' => array(), 'CategoryModel.meta.test_cat_single' => '', - 'CategoryModel.meta.test_cat_multi' => [], + 'CategoryModel.meta.test_cat_multi' => array(), 'TagsCollection.0.id' => 2, 'TagsCollection.0.link' => 'http://example.org/?tag=restapi-client-fixture-tag', 'TagsCollection.0.meta.test_single' => '', - 'TagsCollection.0.meta.test_multi' => [], + 'TagsCollection.0.meta.test_multi' => array(), 'TagsCollection.0.meta.test_tag_meta' => '', 'TagsCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/tags/2', 'TagsCollection.0._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/tags', @@ -640,7 +640,7 @@ class WP_Test_REST_Schema_Initialization extends WP_Test_REST_TestCase { 'TagModel.id' => 2, 'TagModel.link' => 'http://example.org/?tag=restapi-client-fixture-tag', 'TagModel.meta.test_single' => '', - 'TagModel.meta.test_multi' => [], + 'TagModel.meta.test_multi' => array(), 'TagModel.meta.test_tag_meta' => '', 'UsersCollection.0.link' => 'http://example.org/?author=1', 'UsersCollection.0.avatar_urls.24' => 'http://0.gravatar.com/avatar/96614ec98aa0c0d2ee75796dced6df54?s=24&d=mm&r=g',