Simon Berger
80a75e9959
Minor code improvements
4 years ago
Jordi Boggiano
1593b67230
Fix warnings on higher phpunit versions
4 years ago
Michael Chekin
b9be78b689
Additional Util\Bitbucket class test coverage ( #8835 )
4 years ago
Jordi Boggiano
45ecbae8f5
Merge branch 'master' into 2.0
5 years ago
Ion Bazan
a2137d5263
use Symfony PHPUnit Bridge
5 years ago
Jordi Boggiano
713bc4de1d
Minor fixes and updated the rest of the code/tests to use HttpDownloader
6 years ago
Jordi Boggiano
066351c5b9
Remove use of deprecated getMock method
7 years ago
Gabriel Caruso
afc9a7643e
Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase
7 years ago
Jordi Boggiano
122e422682
CS fixes
8 years ago
Stefan Grootscholten
512750a20e
Add more tests to cover the new functionality.
8 years ago
Stefan Grootscholten
a4af559ca8
Store access-token for re-use
...
Store the Bitbucket access-token (and the expiration time) so it can be re-used within the time it is valid.
The Bitbucket::requestToken and Bitbucket::getToken now only return the access-token and not all other parameters it receives from the Bitbucket API.
8 years ago
Stefan Grootscholten
9b00713a67
Update unit test for Bitbucket util
8 years ago
Stefan Grootscholten
2d52531365
Add unit tests for the Bitbucket class.
8 years ago
Paul Wenke
9059d70ba0
Corrected username / access token parameters for $this->io->setAuthentication when read from git config. Grant type is now only set when requesting an access token. Removed bitbucket-domains and bitbucket-protocols from config. Fixed bitbucket typo in JsonConfigSource. Removed unecessary comments. Changed visibility of Composer/Util/Bitbucket properties to private. Added https to bitbucket url. Removed unused $note variable.
9 years ago
Paul.Wenke
b4d9d0fd0d
Added BitbucketTest class. Added is_array and is_object check to http content before calling http_build_query.
9 years ago