Skip to content

Commit

Permalink
Merge pull request #346 from stevenmaguire/instagram-scope-separator
Browse files Browse the repository at this point in the history
Updating scope sepearator and adding test to Instagram provider
  • Loading branch information
ramsey committed Jun 19, 2015
2 parents e092ea4 + c6c05ce commit edcf63e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Provider/Instagram.php
Expand Up @@ -6,7 +6,7 @@

class Instagram extends AbstractProvider
{
public $scopeSeparator = '+';
public $scopeSeparator = ' ';
public $scopes = ['basic'];
public $responseType = 'json';

Expand Down
5 changes: 5 additions & 0 deletions test/src/Provider/InstagramTest.php
Expand Up @@ -70,6 +70,11 @@ public function testGetAccessToken()
public function testScopes()
{
$this->assertEquals(['basic'], $this->provider->getScopes());

$this->provider->setScopes(['basic','likes']);
$authUrl = $this->provider->getAuthorizationUrl();

$this->assertContains('scope=basic+likes', $authUrl);
}

public function testUserData()
Expand Down

0 comments on commit edcf63e

Please sign in to comment.