Support the ongoing development of Laravel.io →
Testing

We have this method in one of our command files:

public function setGateway(Church $church)
{
	$this->gateway = new GV\Library\Gateway\FellowshipOneGateway($church);

	return true;
}

I am trying to set up some testing but not sure how I should setup this FellowshipOneGateway for dependency injection with passing the $church object as well.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.