TheNetworg / oauth2-azure

Azure AD provider for the OAuth 2.0 Client.
https://packagist.org/packages/thenetworg/oauth2-azure
MIT License
229 stars 108 forks source link

Add unit tests #186

Closed BertVM52 closed 1 year ago

BertVM52 commented 1 year ago

Hi,

I've taken the time to add some unit tests. Since I use this package for B2C authentication, most tests that were written test this functionality. I believe it's a good starting point for people to add more tests.

The tests use a MockHandler that returns fake openIdConfig, keys, and tokens. This lets us test the package's code without having to worry about external connections. (See Fakers/ and Helper/)

Overview:

hajekj commented 1 year ago

Awesome! Thanks so much for this!

BertVM52 commented 1 year ago

Thanks for the merge! Any idea when the next package release might be? (would mostly be for #184, for which i'm using a patch now)