Commit e6e64c79 authored by Carsten  Rose's avatar Carsten Rose
Browse files

fix phpunit test.

parent bb73946f
......@@ -246,57 +246,58 @@ class StoreTest extends \PHPUnit_Framework_TestCase {
EOT;
$expect = [
SYSTEM_DB_USER => '<DBUSER>',
SYSTEM_DB_SERVER => '<DBSERVER>',
SYSTEM_DB_PASSWORD => '<DBPW>',
SYSTEM_DB_NAME => '<DB>',
SYSTEM_DB_NAME_TEST => '<TESTDB>',
SYSTEM_DB_INIT => 'set names utf8',
SYSTEM_SQL_LOG_MODE => 'modify',
SYSTEM_DATE_FORMAT => 'yyyy-mm-dd',
SYSTEM_SHOW_DEBUG_INFO => SYSTEM_SHOW_DEBUG_INFO_NO,
F_BS_COLUMNS => '12',
F_BS_LABEL_COLUMNS => '3',
F_BS_INPUT_COLUMNS => '6',
F_BS_NOTE_COLUMNS => '3',
F_CLASS_PILL => 'qfq-color-grey-1',
F_CLASS_BODY => 'qfq-color-grey-2',
F_SAVE_BUTTON_TEXT => '',
F_SAVE_BUTTON_TOOLTIP => 'Save',
F_SAVE_BUTTON_CLASS => 'btn btn-default navbar-btn',
F_SAVE_BUTTON_GLYPH_ICON => 'glyphicon-ok',
F_CLOSE_BUTTON_TEXT => '',
F_CLOSE_BUTTON_TOOLTIP => 'Close',
F_CLOSE_BUTTON_CLASS => 'btn btn-default navbar-btn',
F_CLOSE_BUTTON_GLYPH_ICON => 'glyphicon-remove',
F_DELETE_BUTTON_TEXT => '',
F_DELETE_BUTTON_TOOLTIP => 'Delete',
F_DELETE_BUTTON_CLASS => 'btn btn-default navbar-btn',
F_DELETE_BUTTON_GLYPH_ICON => 'glyphicon-trash',
F_NEW_BUTTON_TEXT => '',
F_NEW_BUTTON_TOOLTIP => 'New',
F_NEW_BUTTON_CLASS => 'btn btn-default navbar-btn',
F_NEW_BUTTON_GLYPH_ICON => 'glyphicon-plus',
F_BUTTON_ON_CHANGE_CLASS => 'btn-info alert-info',
SYSTEM_EDIT_FORM_PAGE => 'form',
SYSTEM_SECURITY_VARS_HONEYPOT => 'email,username,password',
SYSTEM_SECURITY_ATTACK_DELAY => '5',
SYSTEM_SECURITY_SHOW_MESSAGE => '0',
SYSTEM_SECURITY_GET_MAX_LENGTH => '50',
SYSTEM_ESCAPE_TYPE_DEFAULT => 's',
SYSTEM_DB_USER => '<DBUSER>',
SYSTEM_DB_SERVER => '<DBSERVER>',
SYSTEM_DB_PASSWORD => '<DBPW>',
SYSTEM_DB_NAME => '<DB>',
SYSTEM_DB_NAME_TEST => '<TESTDB>',
SYSTEM_DB_INIT => 'set names utf8',
SYSTEM_SQL_LOG_MODE => 'modify',
SYSTEM_DATE_FORMAT => 'yyyy-mm-dd',
SYSTEM_SHOW_DEBUG_INFO => SYSTEM_SHOW_DEBUG_INFO_NO,
F_BS_COLUMNS => '12',
F_BS_LABEL_COLUMNS => '3',
F_BS_INPUT_COLUMNS => '6',
F_BS_NOTE_COLUMNS => '3',
F_CLASS_PILL => 'qfq-color-grey-1',
F_CLASS_BODY => 'qfq-color-grey-2',
F_SAVE_BUTTON_TEXT => '',
F_SAVE_BUTTON_TOOLTIP => 'Save',
F_SAVE_BUTTON_CLASS => 'btn btn-default navbar-btn',
F_SAVE_BUTTON_GLYPH_ICON => 'glyphicon-ok',
F_CLOSE_BUTTON_TEXT => '',
F_CLOSE_BUTTON_TOOLTIP => 'Close',
F_CLOSE_BUTTON_CLASS => 'btn btn-default navbar-btn',
F_CLOSE_BUTTON_GLYPH_ICON => 'glyphicon-remove',
F_DELETE_BUTTON_TEXT => '',
F_DELETE_BUTTON_TOOLTIP => 'Delete',
F_DELETE_BUTTON_CLASS => 'btn btn-default navbar-btn',
F_DELETE_BUTTON_GLYPH_ICON => 'glyphicon-trash',
F_NEW_BUTTON_TEXT => '',
F_NEW_BUTTON_TOOLTIP => 'New',
F_NEW_BUTTON_CLASS => 'btn btn-default navbar-btn',
F_NEW_BUTTON_GLYPH_ICON => 'glyphicon-plus',
F_BUTTON_ON_CHANGE_CLASS => 'btn-info alert-info',
SYSTEM_EDIT_FORM_PAGE => 'form',
SYSTEM_SECURITY_VARS_HONEYPOT => 'email,username,password',
SYSTEM_SECURITY_ATTACK_DELAY => '5',
SYSTEM_SECURITY_SHOW_MESSAGE => '0',
SYSTEM_SECURITY_GET_MAX_LENGTH => '50',
SYSTEM_ESCAPE_TYPE_DEFAULT => 's',
SYSTEM_GFX_EXTRA_BUTTON_INFO_INLINE => '<span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span>',
SYSTEM_GFX_EXTRA_BUTTON_INFO_BELOW => '<span class="glyphicon glyphicon-info-sign text-info" aria-hidden="true"></span>',
SYSTEM_EXTRA_BUTTON_INFO_CLASS => '',
SYSTEM_DB_UPDATE => SYSTEM_DB_UPDATE_AUTO,
SYSTEM_DB_UPDATE => SYSTEM_DB_UPDATE_AUTO,
SYSTEM_RECORD_LOCK_TIMEOUT_SECONDS => SYSTEM_RECORD_LOCK_TIMEOUT_SECONDS_DEFAULT,
DOCUMENTATION_QFQ => DOCUMENTATION_QFQ_URL,
SYSTEM_VAR_ADD_BY_SQL => 'SELECT id AS periodId FROM Period WHERE start<=NOW() ORDER BY start DESC LIMIT 1',
DOCUMENTATION_QFQ => DOCUMENTATION_QFQ_URL,
SYSTEM_VAR_ADD_BY_SQL => 'SELECT id AS periodId FROM Period WHERE start<=NOW() ORDER BY start DESC LIMIT 1',
];
......@@ -313,7 +314,6 @@ EOT;
// check default values
$this->assertEquals($expect, $value, "Retrieve system store.");
//
$body .= PHP_EOL . SYSTEM_FORM_BS_LABEL_COLUMNS . ' = 4';
$body .= PHP_EOL . SYSTEM_FORM_BS_INPUT_COLUMNS . ' = 5';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment