initialize_components(); $this->initialize_pages(); foreach ( $this->components as $component ) { $component->load(); } foreach ( $this->pages as $page ) { $page->load(); } } /** * Initialize UI component Objects. * * This method may be overwritten in tests. * * @access protected */ protected function initialize_components() { $this->components['admin_ui_enhancer'] = new Component\AdminUIEnhancer(); $this->components['core_settings'] = new Setting\CoreSetting(); } /** * Initialize Admin page Objects. * * This method may be overwritten in tests. * * @access protected */ protected function initialize_pages() { $this->pages['log_list_page'] = new Page\LogListPage(); $this->pages['settings_page'] = new Page\SettingsPage(); $this->pages['addon_list_page'] = new Page\AddonListPage(); } }