/** * @depends testILikeThat */ public function testIUnlikeThat(Commentary $comm) { $this->assertEquals(1, $comm->getFanCount()); $this->repository->expects($this->once())->method('findByPk')->with($this->equalTo('54390582e3f43405428b4568'))->will($this->returnValue($this->document)); $this->document->expects($this->once())->method('getCommentaryByUuid')->with($this->equalTo('123'))->will($this->returnValue($comm)); $this->sut->iUnlikeThat('54390582e3f43405428b4568', '123'); $this->assertEquals(0, $comm->getFanCount()); }