Skip to content

Commit

Permalink
Merge pull request #7 from waytohealth/remove-unused-dependency
Browse files Browse the repository at this point in the history
Remove unused dependency
  • Loading branch information
mcgrogan91 authored Jun 17, 2022
2 parents e037d07 + 74a6d18 commit 384e8be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
],
"require": {
"php": ">=5.6.0",
"league/oauth2-client": "2.6.*",
"firebase/php-jwt": "5.2.*"
"league/oauth2-client": "2.6.*"
},
"require-dev": {
"mockery/mockery": "~0.9",
Expand All @@ -40,4 +39,4 @@
}
},
"minimum-stability": "dev"
}
}
8 changes: 4 additions & 4 deletions test/src/Provider/OmronTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,26 +58,26 @@ public function testAuthorizationUrl()

public function testScopes()
{
$scopes = ['user.info', 'user.metrics', 'user.activity'];
$scopes = ['openid', 'offline_access', 'bloodpressure'];

$url = $this->provider->getAuthorizationUrl();
$uri = parse_url($url);
$this->assertContains(urlencode(implode(',', $scopes)), $url);
$this->assertContains(implode('%20', $scopes), $url);
}

public function testGetAuthorizationUrl()
{
$url = $this->provider->getAuthorizationUrl();
$uri = parse_url($url);
$this->assertEquals('/oauth2_user/authorize2', $uri['path']);
$this->assertEquals('/connect/authorize', $uri['path']);
}

public function testGetBaseAccessTokenUrl()
{
$params = [];
$url = $this->provider->getBaseAccessTokenUrl($params);
$uri = parse_url($url);
$this->assertEquals('/oauth2/token', $uri['path']);
$this->assertEquals('/connect/token', $uri['path']);
}

public function testGetResourceOwnerDetailsUrl()
Expand Down

0 comments on commit 384e8be

Please sign in to comment.