/** * Test installing. */ public function test_install() { global $DB; require_once dirname(__FILE__) . '/../db/install.php'; $this->assertTrue(xmldb_elisprogram_archive_install()); $field = $DB->get_record(field::TABLE, array('shortname' => ARCHIVE_FIELD)); $this->assertNotEmpty($field->id); $this->assertTrue($DB->record_exists(field_owner::TABLE, array('fieldid' => $field->id, 'plugin' => 'manual'))); }
* ELIS(TM): Enterprise Learning Intelligence Suite * Copyright (C) 2008-2013 Remote-Learner.net Inc (http://www.remote-learner.net) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * @package elis * @subpackage programmanagement-scripts * @author Remote-Learner.net Inc * @license http://www.gnu.org/copyleft/gpl.html GNU GPL * @copyright (C) 2008-2012 Remote Learner.net Inc http://www.remote-learner.net * */ if (isset($_SERVER['REMOTE_ADDR'])) { die('no web access'); } define('CLI_SCRIPT', true); require_once dirname(__FILE__) . '/../lib/setup.php'; require_once elispm::file('plugins/archive/db/install.php'); xmldb_elisprogram_archive_install();