-
Notifications
You must be signed in to change notification settings - Fork 2
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
Enable module override when test. #12
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## 1.x #12 +/- ##
===========================================
Coverage 100.00% 100.00%
- Complexity 10 18 +8
===========================================
Files 2 3 +1
Lines 25 50 +25
===========================================
+ Hits 25 50 +25
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
7e960b7
to
1d03566
Compare
テスト実行時にモジュールをオーバライド可能にしました。
OverrideModule
トレイトを使います。$this->app
の型が親クラスに定義されており、上書きできないためこの方法にしています。demoアプリに適用した際の差分は以下のとおりです。
https://github.com/koriym/hello-ray-di-for-laravel/compare/master...NaokiTsuchiya:feat/override-module?expand=1