# updates - currently only supported update is the "allowed_for_strict" boolean flag
public update_transformation ( $transformation, $updates = [], $options = [] ) |
function test15a_transformation_unsafe_update() { // should allow unsafe update of named transformation $this->api->create_transformation(self::$api_test_transformation_3, array("crop" => "scale", "width" => 102)); $this->api->update_transformation(self::$api_test_transformation_3, array("unsafe_update" => array("crop" => "scale", "width" => 103))); $transformation = $this->api->transformation(self::$api_test_transformation_3); $this->assertNotEquals($transformation, NULL); $this->assertEquals($transformation["info"], array(array("crop" => "scale", "width" => 103))); $this->assertEquals($transformation["used"], FALSE); }