Skip to content

Commit a5ff4e9

Browse files
committed
Updated dependency league/url
1 parent b6f3f57 commit a5ff4e9

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"ext-reflection": "*",
3333
"ext-spl": "*",
3434
"kriswallsmith/buzz": "~0.13",
35-
"league/url": "~3.2.1",
35+
"league/url": "~3.2",
3636
"gregwar/image": "~2.0.18"
3737
},
3838
"require-dev": {

tests/Unit/OAuth1/Service/AbstractServiceTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function testGetAuthorizationUriWithoutParameters()
8080
$this->getMock('\\OAuth\\OAuth1\\Signature\\SignatureInterface')
8181
);
8282

83-
$this->assertSame('http://pieterhordijk.com/auth', (string) $service->getAuthorizationUri([
83+
$this->assertSame('http://pieterhordijk.com/auth?oauth_token=', (string) $service->getAuthorizationUri([
8484
'oauth_token' => '' // just for skip receiving
8585
]));
8686
}
@@ -98,7 +98,7 @@ public function testGetAuthorizationUriWithParameters()
9898
$this->getMock('\\OAuth\\OAuth1\\Signature\\SignatureInterface')
9999
);
100100

101-
$this->assertSame('http://pieterhordijk.com/auth?foo=bar&baz=beer', (string) $service->getAuthorizationUri([
101+
$this->assertSame('http://pieterhordijk.com/auth?foo=bar&baz=beer&oauth_token=', (string) $service->getAuthorizationUri([
102102
'foo' => 'bar',
103103
'baz' => 'beer',
104104
'oauth_token' => ''

tests/Unit/OAuth2/Service/AbstractServiceTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function testGetAuthorizationUriWithoutParametersOrScopes()
9797
);
9898

9999
$this->assertSame(
100-
'http://pieterhordijk.com/auth?type=web_server&client_id=foo&redirect_uri=bar&response_type=code',
100+
'http://pieterhordijk.com/auth?type=web_server&client_id=foo&redirect_uri=bar&response_type=code&scope=',
101101
(string) $service->getAuthorizationUri()
102102
);
103103
}
@@ -120,7 +120,7 @@ public function testGetAuthorizationUriWithParametersWithoutScopes()
120120
);
121121

122122
$this->assertSame(
123-
'http://pieterhordijk.com/auth?type=web_server&client_id=foo&redirect_uri=bar&response_type=code&foo=bar&baz=beer',
123+
'http://pieterhordijk.com/auth?type=web_server&client_id=foo&redirect_uri=bar&response_type=code&foo=bar&baz=beer&scope=',
124124
(string) $service->getAuthorizationUri(['foo' => 'bar', 'baz' => 'beer'])
125125
);
126126
}
@@ -192,7 +192,7 @@ public function testGetAuthorizationUriWithInjectedVersion()
192192
);
193193

194194
$this->assertSame(
195-
'http://pieterhordijk.com/auth/1.1?type=web_server&client_id=foo&redirect_uri=bar&response_type=code',
195+
'http://pieterhordijk.com/auth/1.1?type=web_server&client_id=foo&redirect_uri=bar&response_type=code&scope=',
196196
(string) $service->getAuthorizationUri()
197197
);
198198
}

tests/Unit/OAuth2/Service/DropboxTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function testGetAuthorizationUriWithoutAdditionalParams()
6868
);
6969

7070
$this->assertSame(
71-
'https://www.dropbox.com/1/oauth2/authorize?client_id=foo&redirect_uri=bar&response_type=code',
71+
'https://www.dropbox.com/1/oauth2/authorize?client_id=foo&redirect_uri=bar&response_type=code&scope=',
7272
(string) $service->getAuthorizationUri()
7373
);
7474
}
@@ -90,7 +90,7 @@ public function testGetAuthorizationUriWithAdditionalParams()
9090
);
9191

9292
$this->assertSame(
93-
'https://www.dropbox.com/1/oauth2/authorize?client_id=foo&redirect_uri=bar&response_type=code',
93+
'https://www.dropbox.com/1/oauth2/authorize?client_id=foo&redirect_uri=bar&response_type=code&scope=',
9494
(string) $service->getAuthorizationUri()
9595
);
9696
}

0 commit comments

Comments
 (0)