1
0
Fork 0
composer/tests/Composer/Test
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
..
Autoload Handle provider/replacer packages and avoid checking extensions which are provided by packages, refs #8546 2020-04-24 13:38:50 +02:00
Command Fix build 2020-02-11 11:41:31 +01:00
Config Fixes from PHPStan (#7687) 2018-11-12 15:23:32 +01:00
Console PHPStan fixes 2020-02-07 23:10:10 +01:00
DependencyResolver Tweak problem wording slightly 2020-04-23 13:17:34 +02:00
Downloader Remove PEAR installer/downloader/repos/..., fixes #8778 2020-04-15 00:24:13 +02:00
EventDispatcher Replace pre/post-dependencies-solving by a pre-operations-exec event happening only on install from lock 2020-02-12 14:35:31 +01:00
Fixtures Fix tests 2020-04-24 09:07:32 +02:00
IO feat(buffer-io): add the possibility to set user inputs for interactive questions 2019-01-05 11:59:33 +01:00
Installer Fix tests 2020-04-23 10:29:22 +02:00
Json Add package naming pattern to the composer.json JSON schema 2020-04-15 13:43:05 +02:00
Mock Add a Composer\Versions class which is available in all projects at runtime to query installed packages/versions 2020-04-22 12:10:09 +02:00
Package Merge branch '1.10' 2020-04-30 21:31:29 +02:00
Plugin Refactor away some unnecessary RepositorySet usages 2020-02-13 17:51:22 +01:00
Question use Symfony PHPUnit Bridge 2020-02-07 12:22:22 +08:00
Repository Add a Composer\Versions class which is available in all projects at runtime to query installed packages/versions 2020-04-22 12:10:09 +02:00
Script Fix indenting 2019-07-29 16:44:50 +02:00
Util Add Util\AuthHelper unit test coverage (#8863) 2020-05-04 09:48:23 +02:00
AllFunctionalTest.php Make usage of foreach to improve readability 2019-07-24 02:39:40 +02:00
ApplicationTest.php do not use env 2020-02-07 13:07:01 +08:00
CacheTest.php Merge branch 'master' into 2.0 2020-02-07 22:20:51 +01:00
ComposerTest.php Add parallel download capability to FileDownloader and derivatives 2019-01-18 08:39:03 +01:00
ConfigTest.php fix risky tests (without any assertion) 2020-02-07 14:35:07 +08:00
DefaultConfigTest.php Fixes from PHPStan (#7687) 2018-11-12 15:23:32 +01:00
FactoryTest.php Fix factory test 2019-01-14 17:29:23 +01:00
InstalledVersionsTest.php Add a Composer\Versions class which is available in all projects at runtime to query installed packages/versions 2020-04-22 12:10:09 +02:00
InstallerTest.php Fix tests 2020-04-24 09:07:32 +02:00
TestCase.php Add a Composer\Versions class which is available in all projects at runtime to query installed packages/versions 2020-04-22 12:10:09 +02:00