public function testGetByPk() { $this->repository->expects($this->once())->method('findByPk')->with($this->equalTo(123))->will($this->returnValue($this->document)); $this->sut->findByPk(123); }