For service methods that call repository methods to interact with database how could I unit test these service methods?
For example,
public function updateSlideshow($data){
// do some logic and method calls (I can test those methods,
// but for this method that call repository ...)
$r = $this->blockRepo->update($data, $config, $slides);
}
How can I check that this method work correctly or at least send right data to update method?
And what about a scenario that method first fetch data from repository and do logic on it?