/** * test comments list */ public function testCommentsList() { $this->creditmemoCommentsListMock->expects($this->once())->method('invoke')->with(1)->will($this->returnValue('search_result')); $this->assertEquals('search_result', $this->creditmemoRead->commentsList(1)); }