diff --git a/module/VuFind/tests/unit-tests/bootstrap.php b/module/VuFind/tests/unit-tests/bootstrap.php index d28c04a2124b0eba7beb2737c585dfcca1351273..16c03f2355aa34ea0b32c39383d96419e75430c8 100644 --- a/module/VuFind/tests/unit-tests/bootstrap.php +++ b/module/VuFind/tests/unit-tests/bootstrap.php @@ -47,5 +47,11 @@ $serviceManager = new ServiceManager(new ServiceManagerConfig($configuration['se $serviceManager->setService('ApplicationConfig', $configuration); $serviceManager->get('ModuleManager')->loadModules(); +// Setup autoloader for VuFindTest classes +$loader = Zend\Loader\AutoloaderFactory::getRegisteredAutoloader( + Zend\Loader\AutoloaderFactory::STANDARD_AUTOLOADER +); +$loader->registerNamespace('VuFindTest', __DIR__ . '/../../src/VuFindTest'); + // Use output buffering -- some tests involve HTTP headers and will fail if there is output. ob_start(); \ No newline at end of file