示例#1
0
 /**
  * Get a URL for the group endpoint
  *
  * @param string $groupName Name of group
  * @return Http\GroupUrl
  */
 public function getResourceGroupUrl($groupName)
 {
     $url = sprintf($this->getBaseUrl() . '/groups/%s.json', $groupName);
     return Http\ResourceGroupUrl::factory($url, $this->getConfig('privateKey'), $this->getPublicKey());
 }
 /**
  * @dataProvider getGroupUrls
  */
 public function testCanFetchTheGroupInTheUrl($url, $groupName)
 {
     $groupUrl = ResourceGroupUrl::factory($url);
     $this->assertSame($groupName, $groupUrl->getGroup());
 }