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

Fixed some unit tests.

parent a96d71f4
......@@ -315,7 +315,8 @@ class BuildFormPlainTest extends AbstractDatabaseTest {
// SQL
$formElement['sql1'] = $this->db->sql('SELECT name FROM Form AS f ORDER BY f.id LIMIT 3');
$expect = ['form', 'formElement', 'phpunit_person'];
// $expect = ['form', 'formElement', 'phpunit_person'];
$expect = ['form', 'formElement', 'copyForm'];
$build->getKeyValueListFromSqlEnumSpec($formElement, $keys, $values);
$this->assertEquals($expect, $keys);
$this->assertEquals($expect, $values);
......@@ -323,7 +324,8 @@ class BuildFormPlainTest extends AbstractDatabaseTest {
// SQL (one column, no keyword) + emptyItemAtStart
$formElement['emptyItemAtStart'] = '';
$formElement['sql1'] = $this->db->sql('SELECT name FROM Form AS f ORDER BY f.id LIMIT 3');
$expect = ['', 'form', 'formElement', 'phpunit_person'];
// $expect = ['', 'form', 'formElement', 'phpunit_person'];
$expect = ['', 'form', 'formElement', 'copyForm'];
$build->getKeyValueListFromSqlEnumSpec($formElement, $keys, $values);
$this->assertEquals($expect, $keys);
$this->assertEquals($expect, $values);
......
......@@ -255,7 +255,7 @@ class DatabaseTest extends AbstractDatabaseTest {
$rc = $this->db->sql($sql, ROW_REGULAR, $dummy, 'fake', $dummy, $stat);
// DB_NUM_ROWS | DB_INSERT_ID | DB_AFFECTED_ROWS
$this->assertEquals(6, $stat[DB_NUM_ROWS]);
$this->assertEquals(7, $stat[DB_NUM_ROWS]);
}
/**
......
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