Skip to content

Commit efb8121

Browse files
committed
removed Api::authorize from tests
1 parent 9496da6 commit efb8121

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

test/Bitbucket/Tests/API/ApiTest.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,6 @@ public function testCredentials()
1515
$api->setCredentials($auth);
1616
}
1717

18-
public function testAuthorize()
19-
{
20-
$request = new \Buzz\Message\Request;
21-
$auth = new API\Authentication\Basic('api_username', 'api_password');
22-
$api = new API\Api;
23-
24-
$api->setCredentials($auth);
25-
26-
// add authorization header
27-
$api->authorize($request);
28-
29-
// check if authorization header is set
30-
$header = $request->getHeader('Authorization');
31-
$this->assertNotNull($header);
32-
}
33-
3418
public function testShouldDoGetRequest()
3519
{
3620
$endpoint = 'repositories/gentle/eof/issues/3';

0 commit comments

Comments
 (0)