tags() public method

public tags ( $options = [] )
コード例 #1
0
ファイル: ApiTest.php プロジェクト: engineor/cloudinary_php
 function test11_tags_prefix()
 {
     // should allow listing tag by prefix
     Curl::mockApi($this);
     $this->api->tags(array("prefix" => "fooba"));
     assertUrl($this, "/tags/image");
     assertGet($this);
     assertParam($this, "prefix", "fooba");
 }
コード例 #2
0
 function test11_tags_prefix()
 {
     // should allow listing tag by prefix
     $result = $this->api->tags(array("prefix" => "api_test"));
     $tags = $result["tags"];
     $this->assertContains("api_test_tag", $tags);
     $result = $this->api->tags(array("prefix" => "api_test_no_such_tag"));
     $tags = $result["tags"];
     $this->assertEquals(count($tags), 0);
 }