public function testILikeThat() { $this->repository->expects($this->once())->method('findByPk')->with($this->equalTo('54390582e3f43405428b4568'))->will($this->returnValue($this->document)); $this->sut->iLikeThat('54390582e3f43405428b4568'); $this->assertEquals(1, $this->document->getFanCount()); }