resources_by_tag() public method

public resources_by_tag ( $tag, $options = [] )
 function test06_resources_tag()
 {
     // should allow listing resources by tag
     $result = $this->api->resources_by_tag("api_test_tag");
     $resource = $this->find_by_attr($result["resources"], "public_id", "api_test");
     $this->assertNotEquals($resource, NULL);
 }
Example #2
0
 function test06_resources_tag()
 {
     // should allow listing resources by tag
     Curl::mockApi($this);
     $this->api->resources_by_tag("foobar");
     assertUrl($this, "/resources/image/tags/foobar");
     assertGet($this);
 }