Skip to content
Snippets Groups Projects
Commit 2be7d97c authored by Carsten  Rose's avatar Carsten Rose
Browse files

StoreTest.php: Add 'init'-check of data-*-error and class-* parameter

parent 19698316
No related branches found
No related tags found
No related merge requests found
......@@ -243,6 +243,7 @@ EOT;
unlink($fileName);
$value = $this->store->getStore(STORE_SYSTEM);
// these values are different between runtime and PHPUnit environment: do not check
unset($value[SYSTEM_SQL_LOG]);
unset($value[SYSTEM_PATH_EXT]);
unset($value[SYSTEM_SITE_PATH]);
......@@ -251,17 +252,35 @@ EOT;
$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';
$body .= PHP_EOL . SYSTEM_FORM_BS_NOTE_COLUMNS . ' = 6';
$body .= PHP_EOL . SYSTEM_FORM_DATA_PATTERN_ERROR . ' = pattern error';
$body .= PHP_EOL . SYSTEM_FORM_DATA_REQUIRED_ERROR . ' = required error';
$body .= PHP_EOL . SYSTEM_FORM_DATA_MATCH_ERROR . ' = match error';
$body .= PHP_EOL . SYSTEM_FORM_DATA_ERROR . ' = error';
$body .= PHP_EOL . SYSTEM_CSS_CLASS_QFQ_FORM . ' = main-class';
$body .= PHP_EOL . SYSTEM_CSS_CLASS_QFQ_FORM_PILL . ' = pill-class';
$body .= PHP_EOL . SYSTEM_CSS_CLASS_QFQ_FORM_BODY . ' = body-class';
$expect[F_BS_LABEL_COLUMNS] = '4';
$expect[F_BS_INPUT_COLUMNS] = '5';
$expect[F_BS_NOTE_COLUMNS] = '6';
$expect[F_FE_DATA_PATTERN_ERROR] = 'pattern error';
$expect[F_FE_DATA_REQUIRED_ERROR] = 'required error';
$expect[F_FE_DATA_MATCH_ERROR] = 'match error';
$expect[F_FE_DATA_ERROR] = 'error';
$expect[F_CLASS] = 'main-class';
$expect[F_CLASS_PILL] = 'pill-class';
$expect[F_CLASS_BODY] = 'body-class';
$fileName = $this->createFile($body);
$this->store = Store::getInstance('', true, $fileName);
unlink($fileName);
$value = $this->store->getStore(STORE_SYSTEM);
// these values are different between runtime and PHPUnit environment: do not check
unset($value[SYSTEM_SQL_LOG]);
unset($value[SYSTEM_PATH_EXT]);
unset($value[SYSTEM_SITE_PATH]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment