You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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.
4 years ago
..
Fixtures Added full unit test coverage 5 years ago
AuthHelperTest.php Add Util\AuthHelper unit test coverage (#8863) 4 years ago
BitbucketTest.php Additional Util\Bitbucket class test coverage (#8835) 4 years ago
ConfigValidatorTest.php Fixes from PHPStan (#7687) 6 years ago
ErrorHandlerTest.php fix risky tests (without any assertion) 4 years ago
FilesystemTest.php Add messages to junction tests to see failures 5 years ago
GitHubTest.php Merge branch 'master' into 2.0 4 years ago
GitLabTest.php Merge branch 'master' into 2.0 4 years ago
GitTest.php fix risky tests (without any assertion) 4 years ago
HttpDownloaderTest.php Fix tests 6 years ago
IniHelperTest.php use Symfony PHPUnit Bridge 4 years ago
MetadataMinifierTest.php Extract MetadataMinifier util 5 years ago
NoProxyPatternTest.php use Symfony PHPUnit Bridge 4 years ago
PerforceTest.php use Symfony PHPUnit Bridge 4 years ago
PlatformTest.php use Symfony PHPUnit Bridge 4 years ago
ProcessExecutorTest.php Merge branch 'master' into 2.0 4 years ago
RemoteFilesystemTest.php Merge branch 'master' into 2.0 4 years ago
SilencerTest.php use Symfony PHPUnit Bridge 4 years ago
StreamContextFactoryTest.php Merge branch 'master' into 2.0 4 years ago
SvnTest.php use Symfony PHPUnit Bridge 4 years ago
TlsHelperTest.php use Symfony PHPUnit Bridge 4 years ago
UrlTest.php Merge branch 'master' into 2.0 4 years ago
ZipTest.php use Symfony PHPUnit Bridge 4 years ago