replace_tag() public static method

public static replace_tag ( $tag, $public_ids = [], $options = [] )
Exemplo n.º 1
0
 public function test_tags()
 {
     $api = new \Cloudinary\Api();
     $result = Uploader::upload(self::LOGO_PNG);
     Curl::mockUpload($this);
     Uploader::add_tag("tag1", "foobar");
     assertUrl($this, "/image/tags");
     assertPost($this);
     assertParam($this, "public_ids[0]", "foobar");
     assertParam($this, "command", "add");
     assertParam($this, "tag", "tag1");
     Uploader::remove_tag("tag1", "foobar");
     assertUrl($this, "/image/tags");
     assertPost($this);
     assertParam($this, "public_ids[0]", "foobar");
     assertParam($this, "command", "remove");
     assertParam($this, "tag", "tag1");
     Uploader::replace_tag("tag3", "foobar");
     assertUrl($this, "/image/tags");
     assertPost($this);
     assertParam($this, "public_ids[0]", "foobar");
     assertParam($this, "command", "replace");
     assertParam($this, "tag", "tag3");
 }