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
..
Autoload Handle provider/replacer packages and avoid checking extensions which are provided by packages, refs #8546 4 years ago
Command Fix build 4 years ago
Config Fixes from PHPStan (#7687) 6 years ago
Console PHPStan fixes 4 years ago
DependencyResolver Tweak problem wording slightly 4 years ago
Downloader Remove PEAR installer/downloader/repos/..., fixes #8778 4 years ago
EventDispatcher Replace pre/post-dependencies-solving by a pre-operations-exec event happening only on install from lock 4 years ago
Fixtures Fix tests 4 years ago
IO feat(buffer-io): add the possibility to set user inputs for interactive questions 6 years ago
Installer Fix tests 4 years ago
Json Add package naming pattern to the composer.json JSON schema 4 years ago
Mock Add a Composer\Versions class which is available in all projects at runtime to query installed packages/versions 4 years ago
Package Merge branch '1.10' 4 years ago
Plugin Refactor away some unnecessary RepositorySet usages 4 years ago
Question use Symfony PHPUnit Bridge 4 years ago
Repository Add a Composer\Versions class which is available in all projects at runtime to query installed packages/versions 4 years ago
Script Fix indenting 5 years ago
Util Add Util\AuthHelper unit test coverage (#8863) 4 years ago
AllFunctionalTest.php Make usage of foreach to improve readability 5 years ago
ApplicationTest.php do not use env 4 years ago
CacheTest.php Merge branch 'master' into 2.0 4 years ago
ComposerTest.php Add parallel download capability to FileDownloader and derivatives 6 years ago
ConfigTest.php fix risky tests (without any assertion) 4 years ago
DefaultConfigTest.php Fixes from PHPStan (#7687) 6 years ago
FactoryTest.php Fix factory test 6 years ago
InstalledVersionsTest.php Add a Composer\Versions class which is available in all projects at runtime to query installed packages/versions 4 years ago
InstallerTest.php Fix tests 4 years ago
TestCase.php Add a Composer\Versions class which is available in all projects at runtime to query installed packages/versions 4 years ago