-
-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Test with FirebaseFactory. #53
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hey, and sorry for the late reply! I haven't really worked with Laravel's fakes in the past, so I understand the principle, but could you please explain a little more in detail how |
I Searched in kreait\firebase-php package i found it use
Kreait\Firebase\Factory
inIntegerationTestCase
class and used it to test. (For example testsubscriteToTopic
method inFirebaseMessaging
class).Is it possible to adding
fake
method toFirebaseMessaging
facade and other facades for mocking and used it in test likeMailFake
class in laravel.Example change in
FirebaseMessaging
facade:Example test for an API:
I test and it work prefect. Is it good way for creating test??
The text was updated successfully, but these errors were encountered: