Commit 858ffb15 authored by Carsten  Rose's avatar Carsten Rose
Browse files

phpunit: Update fixtures table 'Form', 'FormElement' & 'Dirty' definition

parent f36383f4
Pipeline #1212 passed with stage
in 1 minute and 45 seconds
......@@ -435,7 +435,7 @@ class DirtyTest extends AbstractDatabaseTest {
$expected = [API_STATUS => API_ANSWER_STATUS_SUCCESS, API_MESSAGE => ''];
$this->assertEquals($expected, $result);
$session = \qfq\Session::getInstance(true);
$session = Session::getInstance(true);
$session::clearAll();
// Alice Release 2
......@@ -777,7 +777,7 @@ class DirtyTest extends AbstractDatabaseTest {
$expected = [API_STATUS => API_ANSWER_STATUS_SUCCESS, API_MESSAGE => ''];
$this->assertEquals($expected, $result);
$session = \qfq\Session::getInstance(true);
$session = Session::getInstance(true);
$session::clearAll();
// Alice Release 2
......@@ -1153,7 +1153,7 @@ class DirtyTest extends AbstractDatabaseTest {
*/
private function clean($cookie = '') {
$session = \qfq\Session::getInstance(true);
$session = Session::getInstance(true);
$session::clearAll();
if ($cookie != '') {
......@@ -1172,13 +1172,18 @@ class DirtyTest extends AbstractDatabaseTest {
*/
protected function setUp() {
\qfq\Session::getInstance(true);
Session::getInstance(true);
parent::setUp();
$this->executeSQLFile(__DIR__ . '/../database/fixtures/TestFormEditor.sql', true);
$this->executeSQLFile(__DIR__ . '/../database/fixtures/Generic.sql', true);
$this->executeSQLFile(__DIR__ . '/../database/fixtures/TestDirty.sql', true);
try {
$this->executeSQLFile(__DIR__ . '/../database/fixtures/TestFormEditor.sql', true);
$this->executeSQLFile(__DIR__ . '/../database/fixtures/Generic.sql', true);
$this->executeSQLFile(__DIR__ . '/../database/fixtures/TestDirty.sql', true);
} catch (\Exception $e){
echo $e->getMessage();
return;
}
$this->sip = new Sip(true);
$this->sip->sipUniqId('badcaffee1234');
......
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