You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the testing purposes I need to change https://api.github.com host to the mock API url, but there is no way to do it. All auto-tests should go to the mock service, instead of real GitHub.
We can use enterprise url as a workaround, but it looks like a wrong path.
I see 3 ways to implement this feature:
Check in Github\Client::__construct method if AddHostPlugin already defined, and skip it's definition in this case. Set enterprise URL will require the same check.
Add method to change host plugin manually in Github\Client object.
Make Github\Client::getHttpClientBuilder public.
The text was updated successfully, but these errors were encountered:
For the testing purposes I need to change
https://api.github.com
host to the mock API url, but there is no way to do it. All auto-tests should go to the mock service, instead of real GitHub.We can use enterprise url as a workaround, but it looks like a wrong path.
I see 3 ways to implement this feature:
Check in
Github\Client::__construct
method ifAddHostPlugin
already defined, and skip it's definition in this case. Set enterprise URL will require the same check.Add method to change host plugin manually in
Github\Client
object.Make
Github\Client::getHttpClientBuilder
public.The text was updated successfully, but these errors were encountered: