| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function testFind() |
||
| 30 | { |
||
| 31 | $id = 1; |
||
| 32 | $model = $this->getMockForAbstractClass(AbstractModel::class); |
||
| 33 | $this->repository->expects($this->any()) |
||
| 34 | ->method('findWhere') |
||
| 35 | ->with($this->equalTo(['id' => $id])) |
||
| 36 | ->willReturn(new Collection([$model])); |
||
| 37 | $this->assertSame($this->repository->find($id), $this->repository->findById($id)); |
||
| 38 | } |
||
| 45 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.