/**
  * @dataProvider getGroupsUrls
  */
 public function testCanCreateTheUrl($url)
 {
     $groupUrl = ResourceGroupsUrl::factory($url);
     $this->assertSame($url, (string) $groupUrl);
 }
Exemplo n.º 2
0
 /**
  * Get a URL for the groups endpoint
  *
  * @return Http\GroupsUrl
  */
 public function getResourceGroupsUrl()
 {
     return Http\ResourceGroupsUrl::factory($this->getBaseUrl() . '/groups.json', $this->getConfig('privateKey'), $this->getPublicKey());
 }