Skip to content

Commit

Permalink
#62: Avoid IllegalStateException -- runtime manager was already confi…
Browse files Browse the repository at this point in the history
…gured
  • Loading branch information
adamfranco committed Aug 8, 2024
1 parent 6fdf0c5 commit 236fbf4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion application/test/Catalog/ApplicationTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

}

0 comments on commit 236fbf4

Please sign in to comment.