Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294773

Unregister registry-based autoload during unit tests

$
0
0

drupal_autoload_class() and drupal_autoload_interface() will crash if triggered during unit test runs, because no database is set up.
We should temporarily unregister them during unit tests.

Classes that are not loaded with the registry can still be available during unit tests via contrib PSR-0 (xautoload or classloader)


Viewing all articles
Browse latest Browse all 294773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>