diff --git a/application/test/Catalog/ApplicationTestTrait.php b/application/test/Catalog/ApplicationTestTrait.php index fa1c7b3a..240cfd8e 100644 --- a/application/test/Catalog/ApplicationTestTrait.php +++ b/application/test/Catalog/ApplicationTestTrait.php @@ -15,7 +15,9 @@ public static function setUpBeforeClass(): void $registry = Zend_Registry::getInstance(); $registry->config = new Zend_Config_Ini(dirname(__FILE__).'/frontend_config.ini', 'development'); - Zend_Controller_Action_HelperBroker::getStaticHelper('Osid')->setConfigPath(dirname(__FILE__).'/../apc/configuration.plist'); + // Use the APC implementation instead of the direct-query Banner implementation. + self::$runtimeManager = new phpkit_AutoloadOsidRuntimeManager(dirname(__FILE__).'/../apc/configuration.plist'); + self::$courseManager = self::$runtimeManager->getManager(osid_OSID::COURSE(), 'apc_course_CourseManager', '3.0.0'); } }