1
0
Fork 0

GitLab: add warning in case GitLab authentication is misconfigured

pull/10748/head
Stephan Vock 2022-04-28 21:27:16 +01:00
parent 89721ab322
commit d40c3a89c0
No known key found for this signature in database
GPG Key ID: 257FEE7D686036D6
1 changed files with 6 additions and 0 deletions

View File

@ -474,6 +474,9 @@ class AuthHelperTest extends TestCase
$this->authHelper->storeAuth($origin, $storeAuth); $this->authHelper->storeAuth($origin, $storeAuth);
} }
/**
* @return void
*/
public function testStoreAuthWithPromptInvalidAnswer() public function testStoreAuthWithPromptInvalidAnswer()
{ {
$this->setExpectedException('RuntimeException'); $this->setExpectedException('RuntimeException');
@ -514,6 +517,9 @@ class AuthHelperTest extends TestCase
$this->authHelper->storeAuth($origin, $storeAuth); $this->authHelper->storeAuth($origin, $storeAuth);
} }
/**
* @return void
*/
public function testPromptAuthIfNeededGitLabNoAuthChange() public function testPromptAuthIfNeededGitLabNoAuthChange()
{ {
$this->setExpectedException('Composer\Downloader\TransportException'); $this->setExpectedException('Composer\Downloader\TransportException');