使用“方法”的Phpunit测试存储库
我已经尝试解决了一段时间。 我正在测试一个使用“使用”方法的存储库,但是我不知道如何编写测试以涵盖该方法。
$this->entity
->shouldReceive('with')
->once()
->andReturnSelf();
似乎不起作用
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论