I've been trying to solve this for a while. I'm testing a repository that uses the 'with' method however I can't figure out how to write the tests to cover the method.
$this->entity
->shouldReceive('with')
->once()
->andReturnSelf();
doesn't seem to work