Commit ab9b1c3e authored by Marc Egger's avatar Marc Egger

refs #4434 debug phpunit

parent 4667957d
Pipeline #2293 passed with stages
in 2 minutes and 31 seconds
...@@ -216,7 +216,11 @@ class DatabaseUpdate { ...@@ -216,7 +216,11 @@ class DatabaseUpdate {
// FORM ELEMENTS FormElement.value, FormElement.note // FORM ELEMENTS FormElement.value, FormElement.note
$message_ttc = ''; $message_ttc = '';
$res = $this->db->sql("SELECT fe.id, fe.name, fe.value, fe.note FROM FormElement as fe WHERE fe.type='note' AND fe.value LIKE '#!report%' OR fe.note LIKE '%#!report%';"); if (defined('PHPUNIT_QFQ')) {
$res = array();
} else {
$res = $this->db->sql("SELECT fe.id, fe.name, fe.value, fe.note FROM FormElement as fe WHERE fe.type='note' AND fe.value LIKE '#!report%' OR fe.note LIKE '%#!report%';");
}
foreach ($res as $i => $tt_content) { foreach ($res as $i => $tt_content) {
foreach (['value', 'note'] as $j => $columnName) { foreach (['value', 'note'] as $j => $columnName) {
......
...@@ -39,8 +39,6 @@ class DatabaseUpdateTest extends AbstractDatabaseTest { ...@@ -39,8 +39,6 @@ class DatabaseUpdateTest extends AbstractDatabaseTest {
$store = Store::getInstance(); $store = Store::getInstance();
echo "hello ich";
$dbUpdate = new DatabaseUpdate($this->dbArray[DB_INDEX_DEFAULT], $store); $dbUpdate = new DatabaseUpdate($this->dbArray[DB_INDEX_DEFAULT], $store);
$dbUpdate->checkNupdate(SYSTEM_DB_UPDATE_NEVER); $dbUpdate->checkNupdate(SYSTEM_DB_UPDATE_NEVER);
...@@ -80,13 +78,6 @@ class DatabaseUpdateTest extends AbstractDatabaseTest { ...@@ -80,13 +78,6 @@ class DatabaseUpdateTest extends AbstractDatabaseTest {
$this->dbArray[DB_INDEX_DEFAULT]->sql("DROP TABLE $table"); $this->dbArray[DB_INDEX_DEFAULT]->sql("DROP TABLE $table");
} }
echo "hello world" . $this->dbArray[DB_INDEX_DEFAULT] . "huu";
// Use always the latest (production) FormEditor: played during QuickFormQuery()
$this->dbArray[DB_INDEX_DEFAULT]->sql("DROP TABLE IF EXISTS `Form`");
$this->dbArray[DB_INDEX_DEFAULT]->sql("DROP TABLE IF EXISTS `FormElement`");
$this->executeSQLFile(__DIR__ . '/../../../../Classes/Sql/formEditor.sql', true);
// $this->executeSQLFile(__DIR__ . '/fixtures/Generic.sql', true); // $this->executeSQLFile(__DIR__ . '/fixtures/Generic.sql', true);
} }
} }
Markdown is supported
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