More cleanup of unit tests

This commit is contained in:
Kijin Sung 2016-01-11 16:16:38 +09:00
parent 4776078c11
commit 8ad16890da
4 changed files with 5 additions and 21 deletions

View file

@ -20,8 +20,8 @@ before_script:
- if [ $(phpenv version-name) == "5.4" ]; then wget http://codeception.com/releases/2.0.16/codecept.phar; fi - if [ $(phpenv version-name) == "5.4" ]; then wget http://codeception.com/releases/2.0.16/codecept.phar; fi
- if [ ! -f codecept.phar ]; then wget http://codeception.com/codecept.phar; fi - if [ ! -f codecept.phar ]; then wget http://codeception.com/codecept.phar; fi
script: script:
- grunt lint
- if [ -f codecept.phar ]; then php codecept.phar build; fi - if [ -f codecept.phar ]; then php codecept.phar build; fi
- if [ -f codecept.phar ]; then php codecept.phar run -d --fail-fast --env travis; fi - if [ -f codecept.phar ]; then php codecept.phar run -d --fail-fast --env travis; fi
- grunt lint
notifications: notifications:
email: false email: false

View file

@ -1,16 +0,0 @@
{
"name": "RhymiX",
"author": "NAVER, RhymiX Developers and Contributors",
"license": "GNU LGPL",
"repository": {
"type": "git",
"url": "git://github.com/rhymix/rhymix.git"
},
"bugs": {
"url": "https://github.com/rhymix/rhymix/issues"
},
"main": "Gruntfile.js",
"scripts": {
"test": "grunt"
}
}

View file

@ -28,7 +28,7 @@ $install_config = array(
'db_userid' => $dbinfo['user'], 'db_userid' => $dbinfo['user'],
'db_password' => $dbinfo['password'], 'db_password' => $dbinfo['password'],
'db_database' => $dbinfo['dbname'], 'db_database' => $dbinfo['dbname'],
'db_table_prefix' =>'xe_', 'db_table_prefix' =>'rx',
'use_rewrite' =>'N', 'use_rewrite' =>'N',
'time_zone' =>'0900', 'time_zone' =>'0900',
'email_address' =>'admin@admin.net', 'email_address' =>'admin@admin.net',

View file

@ -14,7 +14,7 @@ $dbinfo = [
'type' => $db_type, 'type' => $db_type,
'user' => $db_config['user'], 'user' => $db_config['user'],
'password' => $db_config['password'], 'password' => $db_config['password'],
'dbname' => 'xe_install', 'dbname' => 'rhymix',
'port' => ((isset($db_config['port']) && $db_config['port'])?: 3306), 'port' => ((isset($db_config['port']) && $db_config['port'])?: 3306),
]; ];
foreach($dsn as $piece) { foreach($dsn as $piece) {
@ -27,7 +27,7 @@ if(\Filehandler::exists(_XE_PATH_ . 'config/install.config.php')) {
} }
// Step 1 : License Agreement // Step 1 : License Agreement
$I->wantTo('Install XE Core'); $I->wantTo('Install RhymiX');
$I->amOnPage('/index.php?l=ko'); $I->amOnPage('/index.php?l=ko');
$I->setCookie('l', 'ko'); $I->setCookie('l', 'ko');
$I->seeElement('//div[@id="progress"]/ul/li[1][@class="active"]'); $I->seeElement('//div[@id="progress"]/ul/li[1][@class="active"]');
@ -50,7 +50,7 @@ $I->submitForm('#body', [
'db_userid' => $dbinfo['user'], 'db_userid' => $dbinfo['user'],
'db_password' => $dbinfo['password'], 'db_password' => $dbinfo['password'],
'db_database' => $dbinfo['dbname'], 'db_database' => $dbinfo['dbname'],
'db_table_prefix' => 'xe' 'db_table_prefix' => 'rx'
]); ]);
// Step 4 : Create Admin Account // Step 4 : Create Admin Account