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
The service container does not resolve the mocked object when using the makeWith method with parameters. It does work when using the make method without parameters, but neither does when using parameters.
Steps To Reproduce:
In the test bind a mock: $this->app->bind('App\Model\User', \Mockery::mock('App\Model\User'));
Resolve the App\Model\User with the resolve helper or make method without using parameters. This will return the mock which is ok.
Resolve the App\Model\User with makeWith or make for example: $this->app->makeWith('App\Model\User', ['name' => 'JValck']); This will return the actual implementation instead of the mock.
The text was updated successfully, but these errors were encountered:
Description:
The service container does not resolve the mocked object when using the
makeWith
method with parameters. It does work when using themake
method without parameters, but neither does when using parameters.Steps To Reproduce:
$this->app->bind('App\Model\User', \Mockery::mock('App\Model\User'));
App\Model\User
with theresolve
helper ormake
method without using parameters. This will return the mock which is ok.App\Model\User
withmakeWith
ormake
for example:$this->app->makeWith('App\Model\User', ['name' => 'JValck']);
This will return the actual implementation instead of the mock.The text was updated successfully, but these errors were encountered: