Skip to content

Conversation

@roman-vohnik
Copy link

getBasicCredentials method is implemented in Nette\Http\Request, but it's not part of IRequest interface, so it was missing in this Codeception\Http\Request implementation. With this change we can use $this->tester->amHttpAuthenticated().

Implemented using method_exists($this->request, 'getBasicCredentials') so it's more universal, not depending directly to Nette\Http\Request .

`getBasicCredentials` method is implemented in Nette\Http\Request, but it's not part of IRequest interface, so it was missing in this Codeception\Http\Request implementation. With this change we can use `$this->tester->amHttpAuthenticated()`.
@f3l1x f3l1x merged commit 527d066 into contributte:master Oct 17, 2025
1 check passed
@f3l1x
Copy link
Member

f3l1x commented Oct 17, 2025

Thanks

@roman-vohnik
Copy link
Author

Could you please consider creating a new patch release of the composer package?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants