Permalink
Browse files

Add `notification_url` param to the `update` method

  • Loading branch information...
shedar authored and const-cloudinary committed Jun 11, 2018
1 parent 3f455ae commit 724eb4cc488c7b532af056dd165b6633b74b682c
Showing with 8 additions and 0 deletions.
  1. +1 −0 src/Api.php
  2. +7 −0 tests/ApiTest.php
View
@@ -454,6 +454,7 @@ public function update($public_id, $options = array())
"auto_tagging",
"background_removal",
"quality_override",
+ "notification_url",
)
);
View
@@ -787,6 +787,13 @@ public function test20_manual_moderation()
$this->assertEquals($api_result["moderation"][0]["kind"], "manual");
}
+ public function test21_notification_url()
+ {
+ Curl::mockApi($this);
+ $this->api->update("foobar", array("notification_url" => "http://example.com"));
+ assertParam($this, "notification_url", "http://example.com");
+ }
+
/**
* Should support requesting raw_convert
*

0 comments on commit 724eb4c

Please sign in to comment.