<?php
/*
*

 ______   _______  __   __  _______  _______  ___   _______ 
|      | |       ||  |_|  ||       ||       ||   | |       |
|  _    ||    ___||       ||   _   ||_     _||   | |       |
| | |   ||   |___ |       ||  | |  |  |   |  |   | |       |
| |_|   ||    ___||       ||  |_|  |  |   |  |   | |      _|
|       ||   |___ | ||_|| ||       |  |   |  |   | |     |_ 
|______| |_______||_|   |_||_______|  |___|  |___| |_______|
 _______  __   __  _______                                  
|       ||  |_|  ||       |                                 
|       ||       ||  _____|                                 
|       ||       || |_____                                  
|      _||       ||_____  |                                 
|     |_ | ||_|| | _____| |                                 
|_______||_|   |_||_______|                                                   
                                              
                                           
*
*
*/

/**
 * Demotic CMS is a fork of ImpressPages.
 * AUTHOR: Demotic
 * @package Demotic
 */

namespace Demotic\Gebtu\Install;


class TestService
{
    public static function setupTestDatabase($database, $tablePrefix)
    {
        Model::setInstallationDir(ipFile(''));
        Model::createDatabaseStructure($database, $tablePrefix);
        Model::importData($tablePrefix);
        OptionHelper::import(__DIR__ . '/options.json');
        Model::insertAdmin('test', 'test@example.com', 'test');
        ipSetOptionLang('Config.websiteTitle', 'TestSite', 'en');
        ipSetOptionLang('Config.websiteEmail', 'test@example.com', 'en');

    }
}
