I'm new to testing and am trying to figure out how to inject dependencies. I am able to inject objects as parameters but am not sure how to do so when the dependency is resolved via the Container. In other words, I have a method that currently gets an instance of testClass via App::make('testClass'). How do I get this instance during testing?
Thanks
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community