How to debug a configuration object, when testing?
You can use Config::get(), for which:


  If no key is specified, then the entire data array is returned.


e.g.

debug(\Drupal::config('mymodule.settings')-&gt;get());