WordPress.org

Make WordPress Core

Changeset 43852


Ignore:
Timestamp:
10/31/2018 02:02:45 PM (13 months ago)
Author:
danielbachhuber
Message:

REST API: Fix array syntax after [43851].

I thought I was writing JavaScript. Alas.

See #45196.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/tests/phpunit/tests/rest-api/rest-schema-setup.php

    r43851 r43852  
    600600        'CategoriesCollection.0.link' => 'http://example.org/?cat=1',
    601601        'CategoriesCollection.0.meta.test_single' => '',
    602         'CategoriesCollection.0.meta.test_multi' => [],
     602        'CategoriesCollection.0.meta.test_multi' => array(),
    603603        'CategoriesCollection.0.meta.test_cat_single' => '',
    604         'CategoriesCollection.0.meta.test_cat_multi' => [],
     604        'CategoriesCollection.0.meta.test_cat_multi' => array(),
    605605        'CategoriesCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/categories/1',
    606606        'CategoriesCollection.0._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/categories',
     
    609609        'CategoryModel.link' => 'http://example.org/?cat=1',
    610610        'CategoryModel.meta.test_single' => '',
    611         'CategoryModel.meta.test_multi' => [],
     611        'CategoryModel.meta.test_multi' => array(),
    612612        'CategoryModel.meta.test_cat_single' => '',
    613         'CategoryModel.meta.test_cat_multi' => [],
     613        'CategoryModel.meta.test_cat_multi' => array(),
    614614        'TagsCollection.0.id' => 2,
    615615        'TagsCollection.0.link' => 'http://example.org/?tag=restapi-client-fixture-tag',
    616616        'TagsCollection.0.meta.test_single' => '',
    617         'TagsCollection.0.meta.test_multi' => [],
     617        'TagsCollection.0.meta.test_multi' => array(),
    618618        'TagsCollection.0.meta.test_tag_meta' => '',
    619619        'TagsCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/tags/2',
     
    624624        'TagModel.link' => 'http://example.org/?tag=restapi-client-fixture-tag',
    625625        'TagModel.meta.test_single' => '',
    626         'TagModel.meta.test_multi' => [],
     626        'TagModel.meta.test_multi' => array(),
    627627        'TagModel.meta.test_tag_meta' => '',
    628628        'UsersCollection.0.link' => 'http://example.org/?author=1',
Note: See TracChangeset for help on using the changeset viewer.