1
0
Fork 0
composer/tests/Composer/Test/Util
Michael Chekin c23670c3ec
Add Util\AuthHelper unit test coverage (#8863)
* Add AuthHelper::addAuthenticationHeader() test on missing authentication credentials.

* Add AuthHelper::addAuthenticationHeader() test on bearer password.

* Add AuthHelper::addAuthenticationHeader() test on Github token.

* Add AuthHelper::addAuthenticationHeader() test on Gitlab Oauth token.

* Add $authenticationDisplayMessage write expectation to AuthHelper::addAuthenticationHeader() tests.

* Add AuthHelper::addAuthenticationHeader() test on Gitlab private token.

* Add AuthHelper::addAuthenticationHeader() test on Bitbucket Oauth token.

* Add AuthHelper::addAuthenticationHeader() test on Bitbucket public urls.

* Add AuthHelper::addAuthenticationHeader() test on Basic Http Authentication.

* Add AuthHelper::isPublicBitBucketDownload() tests.

* Rename AuthHelperTest $credentials variable to $auth.

* Add AuthHelper::storeAuth() test for auto-store option.

* Add AuthHelper::storeAuth() test for user prompt and y(es) answer.

* Add AuthHelper::storeAuth() test for user prompt and n(o) answer.

* Add AuthHelper::storeAuth() test for user prompt with invalid answer.

* Add AuthHelper::promptAuthIfNeeded() test for Github authentication failure.

- add GitHub hard dependency mock (new GitHub(...) mock)

* Run AuthHelper::promptAuthIfNeeded() tests only with PHP > 5.3

* Run AuthHelper::promptAuthIfNeeded() tests only with PHP >= 5.4

* Run AuthHelper::promptAuthIfNeeded() tests only with PHP 5.4

* Exclude PHPStan analyses of '../tests/Composer/Test/Util/Mocks/*'

* Exclude AuthHelper::promptAuthIfNeeded() tests from current pull request.

* Extract repetitive AuthHelperTest authentication expectation into a method.
2020-05-04 09:48:23 +02:00
..
Fixtures Added full unit test coverage 2019-03-04 11:08:59 +01:00
AuthHelperTest.php Add Util\AuthHelper unit test coverage (#8863) 2020-05-04 09:48:23 +02:00
BitbucketTest.php Additional Util\Bitbucket class test coverage (#8835) 2020-04-28 11:45:30 +02:00
ConfigValidatorTest.php Fixes from PHPStan (#7687) 2018-11-12 15:23:32 +01:00
ErrorHandlerTest.php fix risky tests (without any assertion) 2020-02-07 14:35:07 +08:00
FilesystemTest.php Add messages to junction tests to see failures 2019-10-21 11:09:17 +02:00
GitHubTest.php Merge branch 'master' into 2.0 2020-02-07 22:20:51 +01:00
GitLabTest.php Merge branch 'master' into 2.0 2020-02-07 22:20:51 +01:00
GitTest.php fix risky tests (without any assertion) 2020-02-07 14:35:07 +08:00
HttpDownloaderTest.php Fix tests 2019-01-14 17:29:24 +01:00
IniHelperTest.php use Symfony PHPUnit Bridge 2020-02-07 12:22:22 +08:00
MetadataMinifierTest.php Extract MetadataMinifier util 2020-01-15 12:58:30 +01:00
NoProxyPatternTest.php use Symfony PHPUnit Bridge 2020-02-07 12:22:22 +08:00
PerforceTest.php use Symfony PHPUnit Bridge 2020-02-07 12:22:22 +08:00
PlatformTest.php use Symfony PHPUnit Bridge 2020-02-07 12:22:22 +08:00
ProcessExecutorTest.php Merge branch 'master' into 2.0 2020-02-07 22:20:51 +01:00
RemoteFilesystemTest.php Merge branch 'master' into 2.0 2020-02-07 22:20:51 +01:00
SilencerTest.php use Symfony PHPUnit Bridge 2020-02-07 12:22:22 +08:00
StreamContextFactoryTest.php Merge branch 'master' into 2.0 2020-02-07 22:20:51 +01:00
SvnTest.php use Symfony PHPUnit Bridge 2020-02-07 12:22:22 +08:00
TlsHelperTest.php use Symfony PHPUnit Bridge 2020-02-07 12:22:22 +08:00
UrlTest.php Merge branch 'master' into 2.0 2020-02-07 22:20:51 +01:00
ZipTest.php use Symfony PHPUnit Bridge 2020-02-07 12:22:22 +08:00