PHPUnit Testing repository with `with` method

Viewed 28

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

0 Answers
Related