private function setMockImportHistoryService($historyId, $row, $message) { $mockImportHistoryService = $this->getMock('Craft\\Import_HistoryService'); $mockImportHistoryService->expects($this->any())->method('log')->with($historyId, $row, $message); $this->setComponent(craft(), 'import_history', $mockImportHistoryService); }