Skip to content

Commit

Permalink
Update fixtures.
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash committed Jul 24, 2020
1 parent a29f555 commit bcef3e4
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Response/IdeResponse.php
Expand Up @@ -24,6 +24,6 @@ public function __construct($ide)
$this->uuid = $ide->uuid;
$this->label = $ide->label;
$this->links = $ide->_links;
$this->owner = $ide->_embedded->owner;
$this->owner = new MemberResponse($ide->_embedded->owner);
}
}
14 changes: 13 additions & 1 deletion tests/Fixtures/Endpoints/Ides/getAllIdes.json
Expand Up @@ -29,8 +29,20 @@
"ide": {
"href": "https://215824ff-272a-4a8c-9027-df32ed1d68a9.ides.acquia.com"
}
},
"_embedded": {
"owner": {
"uuid": "10be1d3e-f2b4-4d34-855d-321df3938ffd",
"first_name": "First",
"last_name": "Last",
"last_login_at": "2019-01-31T10:53:11-05:00",
"created_at": "2016-08-14T17:38:59-04:00",
"email": "user.name@example.com",
"picture_url": "https://accounts.acquia.com/path/to/image.png",
"username": "user.name"
}
}
}
]
}
}
}
14 changes: 13 additions & 1 deletion tests/Fixtures/Endpoints/Ides/getIde.json
Expand Up @@ -16,6 +16,18 @@
},
"ide": {
"href": "https://215824ff-272a-4a8c-9027-df32ed1d68a9.ides.acquia.com"
},
"_embedded": {
"owner": {
"uuid": "10be1d3e-f2b4-4d34-855d-321df3938ffd",
"first_name": "First",
"last_name": "Last",
"last_login_at": "2019-01-31T10:53:11-05:00",
"created_at": "2016-08-14T17:38:59-04:00",
"email": "user.name@example.com",
"picture_url": "https://accounts.acquia.com/path/to/image.png",
"username": "user.name"
}
}
}
}
}

0 comments on commit bcef3e4

Please sign in to comment.