@@ -28,43 +28,43 @@ |
||
| 28 | 28 | class OrganizationTest extends TestCase |
| 29 | 29 | { |
| 30 | 30 | |
| 31 | - public function testGetOrganizations() |
|
| 32 | - { |
|
| 33 | - $mock = $this->createMock(ApiInterface::class); |
|
| 34 | - $mock |
|
| 35 | - ->expects($this->once()) |
|
| 36 | - ->method('get') |
|
| 37 | - ->with( |
|
| 38 | - $this->equalTo('https://api-ssl.bitly.com/v4/organizations') |
|
| 39 | - ); |
|
| 40 | - $bitlink = new Organization($mock); |
|
| 41 | - $bitlink->getOrganizations(); |
|
| 42 | - } |
|
| 31 | + public function testGetOrganizations() |
|
| 32 | + { |
|
| 33 | + $mock = $this->createMock(ApiInterface::class); |
|
| 34 | + $mock |
|
| 35 | + ->expects($this->once()) |
|
| 36 | + ->method('get') |
|
| 37 | + ->with( |
|
| 38 | + $this->equalTo('https://api-ssl.bitly.com/v4/organizations') |
|
| 39 | + ); |
|
| 40 | + $bitlink = new Organization($mock); |
|
| 41 | + $bitlink->getOrganizations(); |
|
| 42 | + } |
|
| 43 | 43 | |
| 44 | - public function testGetOrganizationShortenCounts() |
|
| 45 | - { |
|
| 46 | - $mock = $this->createMock(ApiInterface::class); |
|
| 47 | - $mock |
|
| 48 | - ->expects($this->once()) |
|
| 49 | - ->method('get') |
|
| 50 | - ->with( |
|
| 51 | - $this->equalTo('https://api-ssl.bitly.com/v4/organizations/test/shorten_counts') |
|
| 52 | - ); |
|
| 53 | - $bitlink = new Organization($mock); |
|
| 54 | - $bitlink->getOrganizationShortenCounts('test'); |
|
| 55 | - } |
|
| 44 | + public function testGetOrganizationShortenCounts() |
|
| 45 | + { |
|
| 46 | + $mock = $this->createMock(ApiInterface::class); |
|
| 47 | + $mock |
|
| 48 | + ->expects($this->once()) |
|
| 49 | + ->method('get') |
|
| 50 | + ->with( |
|
| 51 | + $this->equalTo('https://api-ssl.bitly.com/v4/organizations/test/shorten_counts') |
|
| 52 | + ); |
|
| 53 | + $bitlink = new Organization($mock); |
|
| 54 | + $bitlink->getOrganizationShortenCounts('test'); |
|
| 55 | + } |
|
| 56 | 56 | |
| 57 | - public function testGetOrganization() |
|
| 58 | - { |
|
| 59 | - $mock = $this->createMock(ApiInterface::class); |
|
| 60 | - $mock |
|
| 61 | - ->expects($this->once()) |
|
| 62 | - ->method('get') |
|
| 63 | - ->with( |
|
| 64 | - $this->equalTo('https://api-ssl.bitly.com/v4/organizations/test') |
|
| 65 | - ); |
|
| 66 | - $bitlink = new Organization($mock); |
|
| 67 | - $bitlink->getOrganization('test'); |
|
| 68 | - } |
|
| 57 | + public function testGetOrganization() |
|
| 58 | + { |
|
| 59 | + $mock = $this->createMock(ApiInterface::class); |
|
| 60 | + $mock |
|
| 61 | + ->expects($this->once()) |
|
| 62 | + ->method('get') |
|
| 63 | + ->with( |
|
| 64 | + $this->equalTo('https://api-ssl.bitly.com/v4/organizations/test') |
|
| 65 | + ); |
|
| 66 | + $bitlink = new Organization($mock); |
|
| 67 | + $bitlink->getOrganization('test'); |
|
| 68 | + } |
|
| 69 | 69 | |
| 70 | 70 | } |