Skip to content

Commit

Permalink
#17 Adding unit tests and code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
hughdevore committed Aug 14, 2017
1 parent 424dc47 commit e703053
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test-media-item-mutations.php
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ public function updateMediaItemMutation() {
description
mimeType
author {
username
id
}
}
}
Expand Down Expand Up @@ -590,6 +590,7 @@ public function testUpdateMediaItemMutation() {
* successfully run the mutation
*/
wp_set_current_user( $this->admin );

$actual = $this->updateMediaItemMutation();

/**
Expand All @@ -613,7 +614,9 @@ public function testUpdateMediaItemMutation() {
'status' => strtolower( $this->updated_status ),
'pingStatus' => $this->updated_pingStatus,
'mimeType' => 'image/gif',
'author' => [ 'username' => 'User 196' ],
'author' => [
'id' => \GraphQLRelay\Relay::toGlobalId( 'user', $this->admin ),
],
],
],
],
Expand Down

0 comments on commit e703053

Please sign in to comment.