Issue
The Search Class -> arrValidator Method is designed for incorrect input data to fail gracefully. However, at this point it will fail everything.
if($this->arrValidator($param)){
return [];
}
Solution
- Create tests for SearchGetters -> getArrValidator($param) Method so it can test the Search -> arrValidator($param) Method
- Change the Search -> arrValidator($param) Method to protected and not private
- Add arrValidator($param) Method the Search abstract Class
- Wire up the SearchGetter Method to the Search method
- Run tests, commit, deploy