delete_resources_by_tag() public method

public delete_resources_by_tag ( $tag, $options = [] )
Example #1
0
 function test09b_delete_resources_by_tag()
 {
     // should allow deleting resources
     Curl::mockApi($this);
     $this->api->delete_resources_by_tag("api_test_tag_for_delete");
     assertUrl($this, "/resources/image/tags/api_test_tag_for_delete");
     assertDelete($this);
 }
 /**
  * @expectedException \Cloudinary\Api\NotFound
  */
 function test09b_delete_resources_by_tag()
 {
     // should allow deleting resources
     \Cloudinary\Uploader::upload("tests/logo.png", array("public_id" => "api_test4", "tags" => array("api_test_tag_for_delete")));
     $resource = $this->api->resource("api_test4");
     $this->assertNotEquals($resource, NULL);
     $this->api->delete_resources_by_tag("api_test_tag_for_delete");
     $this->api->resource("api_test4");
 }