When retrieving the data from the configuration file, you retrieve an array and the find() method cannot be applyed to an array.
Here are the helpers accessible for the arrays.
https://laravel.com/docs/9.x/helpers
I assume you have put the array in the configuration file in order to test, but you will retrieve JSON data from the API and not an array.
This way your test will no be relevant.