From d40c3a89c010b7ed1123de6a6e6b25f98138ea82 Mon Sep 17 00:00:00 2001 From: Stephan Vock Date: Thu, 28 Apr 2022 21:27:16 +0100 Subject: [PATCH] GitLab: add warning in case GitLab authentication is misconfigured --- tests/Composer/Test/Util/AuthHelperTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/Composer/Test/Util/AuthHelperTest.php b/tests/Composer/Test/Util/AuthHelperTest.php index 9372e691f..9dd4bacf4 100644 --- a/tests/Composer/Test/Util/AuthHelperTest.php +++ b/tests/Composer/Test/Util/AuthHelperTest.php @@ -474,6 +474,9 @@ class AuthHelperTest extends TestCase $this->authHelper->storeAuth($origin, $storeAuth); } + /** + * @return void + */ public function testStoreAuthWithPromptInvalidAnswer() { $this->setExpectedException('RuntimeException'); @@ -514,6 +517,9 @@ class AuthHelperTest extends TestCase $this->authHelper->storeAuth($origin, $storeAuth); } + /** + * @return void + */ public function testPromptAuthIfNeededGitLabNoAuthChange() { $this->setExpectedException('Composer\Downloader\TransportException');