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
I think the most important thing before writing tests is an option to isolate DiscordPHP usage, create some kind of abstraction layer for Laracord->DiscordPHP communication, and then on test init we can register some kind of FakeDiscordClient, that will allow us to perform expectations.
We can not use real DiscordPHP and real discord API for test, so that can be the only one solution.
We aslo can create a ::fake method on some kind of Laracord facade, that will autoregister that FakeDiscordClient class to container.
DiscordPHP was written with PHPUnit in mind for test cases. I believe the dependency itself should be used for such testing rather than within Laracord via an abstraction layer, or such testing should extend from those test cases.
No description provided.
The text was updated successfully, but these errors were encountered: