Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
spacedmonkey committed Apr 21, 2020
1 parent dc6d4f5 commit 7b25cbd
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions tests/phpunit/php/class-test-rest-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,35 +208,35 @@ public function test_prepare_item_for_response_for_ajax() {
$request->set_header( 'X-Requested-With', 'XMLHttpRequest' );

$expected = [
'id' => 'rO8TdlRrOo0',
'title' => '',
'filename' => 'ro8tdlrroo0.jpeg',
'url' => 'https://images.unsplash.com/photo-1557668364-d0aa79a798f4?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEwMjU2NX0',
'link' => 'https://unsplash.com/photos/rO8TdlRrOo0?utm_source=WordPress-XWP&utm_medium=referral&utm_campaign=api-credit',
'alt' => 'black wolf near rocks',
'author' => 'Waldemar Brandt',
'description' => 'black wolf near rocks',
'name' => 'ro8tdlrroo0',
'height' => 2785,
'width' => 3998,
'status' => 'inherit',
'uploadedTo' => 0,
'date' => 1557668448000,
'modified' => 1583557448000,
'menuOrder' => 0,
'mime' => 'image/jpeg',
'type' => 'image',
'subtype' => 'jpeg',
'icon' => 'https://images.unsplash.com/photo-1557668364-d0aa79a798f4?ixlib=rb-1.2.1&q=85&fm=jpg&crop=entropy&cs=tinysrgb&w=150&fit=crop&ixid=eyJhcHBfaWQiOjEwMjU2NX0&h=150',
'dateFormatted' => 'May 12, 2019',
'nonces' => [
'id' => 'rO8TdlRrOo0',
'title' => '',
'filename' => 'ro8tdlrroo0.jpeg',
'url' => 'https://images.unsplash.com/photo-1557668364-d0aa79a798f4?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEwMjU2NX0',
'link' => 'https://unsplash.com/photos/rO8TdlRrOo0?utm_source=WordPress-XWP&utm_medium=referral&utm_campaign=api-credit',
'alt' => 'black wolf near rocks',
'author' => 'Waldemar Brandt',
'description' => 'black wolf near rocks',
'name' => 'ro8tdlrroo0',
'height' => 2785,
'width' => 3998,
'status' => 'inherit',
'uploadedTo' => 0,
'date' => 1557668448000,
'modified' => 1583557448000,
'menuOrder' => 0,
'mime' => 'image/jpeg',
'type' => 'image',
'subtype' => 'jpeg',
'icon' => 'https://images.unsplash.com/photo-1557668364-d0aa79a798f4?ixlib=rb-1.2.1&q=85&fm=jpg&crop=entropy&cs=tinysrgb&w=150&fit=crop&ixid=eyJhcHBfaWQiOjEwMjU2NX0&h=150',
'dateFormatted' => 'May 12, 2019',
'nonces' => [
'update' => false,
'delete' => false,
'edit' => false,
],
'editLink' => false,
'meta' => false,
'sizes' => [
'editLink' => false,
'meta' => false,
'sizes' => [
'full' => [
'url' => 'https://images.unsplash.com/photo-1557668364-d0aa79a798f4?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEwMjU2NX0',
'height' => 2785,
Expand Down Expand Up @@ -268,7 +268,7 @@ public function test_prepare_item_for_response_for_ajax() {
'orientation' => 0,
],
],
'unsplash_order' => 0
'unsplash_order' => 0,
];

if ( version_compare( '5.2', get_bloginfo( 'version' ), '<' ) ) {
Expand Down

0 comments on commit 7b25cbd

Please sign in to comment.