function test19_delete_derived() { // should allow deleting all resources $this->markTestSkipped("Not enabled by default - remove this line to test"); Uploader::upload(self::LOGO_PNG, array("public_id" => self::$api_test_5, "eager" => array("transformation" => array("width" => 101, "crop" => "scale")))); $resource = $this->api->resource(self::$api_test_5); $this->assertNotEquals($resource, NULL); $this->assertEquals(count($resource["derived"]), 1); $this->api->delete_all_resources(array("keep_original" => True)); $resource = $this->api->resource(self::$api_test_5); $this->assertNotEquals($resource, NULL); $this->assertEquals(count($resource["derived"]), 0); }