Skip to content

Commit

Permalink
remove destroyImages picture + test
Browse files Browse the repository at this point in the history
  • Loading branch information
jrm2k6 committed Apr 6, 2015
1 parent fd2302d commit 82a42a4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
11 changes: 0 additions & 11 deletions src/JD/Cloudder/CloudinaryWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,17 +166,6 @@ public function destroyImage($publicId, $options = array())
return $this->getUploader()->destroy($publicId, $options);
}

/**
* Destroy images
* @param array $publicIds
* @param array $options
* @return array
*/
public function destroyImages($publicIds, $options = array())
{
return $this->getUploader()->destroy($publicIds, $options);
}

/**
* Alias of destroy.
*
Expand Down
11 changes: 0 additions & 11 deletions tests/CloudinaryWrapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,6 @@ public function it_should_call_api_destroy_when_calling_destroy_image()
$this->cloudinary_wrapper->destroyImage($pid);
}

/** @test */
public function it_should_call_api_destroy_with_array_of_public_ids()
{
// given
$pids = ['pid1', 'pid2'];
$this->uploader->shouldReceive('destroy')->with($pids, array())->once();

// when
$this->cloudinary_wrapper->destroyImages($pids);
}

/** @test */
public function verify_delete_alias()
{
Expand Down

0 comments on commit 82a42a4

Please sign in to comment.