Skip to content

Commit

Permalink
wp-graphql#156 - OptionsQueries - Misc updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbahl committed Oct 27, 2017
1 parent f1f41d5 commit 9af44b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test-media-item-mutations.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function setUp() {
$this->date = '2017-08-01 15:00:00';
$this->dateGmt = '2017-08-01 21:00:00';
$this->description = 'This is a magic description.';
$this->filePath = dirname( dirname( __FILE__ ) ) . '/img/wp-example-web.php';
$this->filePath = 'http://www.reactiongifs.com/r/mgc.gif';
$this->fileType = 'IMAGE_GIF';
$this->slug = 'magic-shia';
$this->status = 'INHERIT';
Expand Down Expand Up @@ -285,7 +285,7 @@ public function testCreateMediaItemAsSubscriber() {
*/
public function testCreateMediaItemFilePath() {
wp_set_current_user( $this->admin );
$this->create_variables['input']['filePath'] = dirname( dirname( __FILE__ ) ) . '/img/wp-example-web.php';
$this->create_variables['input']['filePath'] = 'file:///Users/hdevore/Desktop/Current/colorado_lake.jpeg';
$actual = $this->createMediaItemMutation();
$this->assertArrayHasKey( 'errors', $actual );
$this->create_variables['input']['filePath'] = $this->filePath;
Expand Down

0 comments on commit 9af44b2

Please sign in to comment.