@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -require __DIR__ . '/../../../../vendor/autoload.php'; |
|
2 | +require __DIR__.'/../../../../vendor/autoload.php'; |
|
3 | 3 | |
4 | 4 | define('CLIENT_ID', getenv('TEST_CLIENT_ID')); |
5 | 5 | define('CLIENT_SECRET', getenv('TEST_CLIENT_SECRET')); |
@@ -16,18 +16,18 @@ |
||
16 | 16 | $this->instagram = new Instagram($config); |
17 | 17 | } |
18 | 18 | |
19 | - public function testBuildClient(){ |
|
19 | + public function testBuildClient() { |
|
20 | 20 | $this->assertObjectHasAttribute('client_id', $this->instagram); |
21 | 21 | $this->assertObjectHasAttribute('client_secret', $this->instagram); |
22 | 22 | $this->assertObjectHasAttribute('callback_url', $this->instagram); |
23 | 23 | } |
24 | 24 | |
25 | - public function testUrl(){ |
|
25 | + public function testUrl() { |
|
26 | 26 | $scope = array( |
27 | 27 | "basic" |
28 | 28 | ); |
29 | 29 | |
30 | - $url = $this->instagram->getUrl("oauth/authorize",["scope" => $scope]); |
|
30 | + $url = $this->instagram->getUrl("oauth/authorize", ["scope" => $scope]); |
|
31 | 31 | |
32 | 32 | $this->assertEquals('https://api.instagram.com/oauth/authorize?client_id='.CLIENT_ID.'&redirect_uri='.urlencode(CALLBACK_URL).'&response_type=code&scope=basic', $url); |
33 | 33 | } |