DB: mysql 5.5
(mysql Ver 14.14 Distrib 5.5.46, for debian-linux-gnu (x86_64) using readline 6.3)
When running unit tests on a vanilla Mahara 15.04.4 with a mysql database, 3 tests fail:
Configuration read from /var/www/palnet/mahara/phpunit.xml
........EEE
Time: 39.5 seconds, Memory: 36.00Mb
There were 3 errors:
1) WebServiceGroupTest::testRun
SQLException: Failed to get a recordset: mysqli error: [1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"tst_config" WHERE "field" = 'webservice_enabled' LIMIT 2' at line 1] in EXECUTE("SELECT * FROM "tst_config" WHERE "field" = 'webservice_enabled' LIMIT 2")
Command was: SELECT * FROM "tst_config" WHERE "field" = ? and values was (webservice_enabled)
2) WebServiceInstitutionTest::testRun
SQLException: Failed to get a recordset: mysqli error: [1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"tst_config" WHERE "field" = 'webservice_enabled' LIMIT 2' at line 1] in EXECUTE("SELECT * FROM "tst_config" WHERE "field" = 'webservice_enabled' LIMIT 2")
Command was: SELECT * FROM "tst_config" WHERE "field" = ? and values was (webservice_enabled)
3) WebServiceUserTest::testRun
SQLException: Failed to get a recordset: mysqli error: [1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"tst_config" WHERE "field" = 'webservice_enabled' LIMIT 2' at line 1] in EXECUTE("SELECT * FROM "tst_config" WHERE "field" = 'webservice_enabled' LIMIT 2")
Command was: SELECT * FROM "tst_config" WHERE "field" = ? and values was (webservice_enabled)
-----------------------------------------------------------------------------------------------
On the same vanilla Mahara 15.04.4, the unit tests pass using postgres:
PHPUnit 4.3.4 by Sebastian Bergmann.
Configuration read from /var/www/palnet/mahara/phpunit.xml
........SSS
Time: 38.13 seconds, Memory: 35.25Mb
OK, but incomplete, skipped, or risky tests!
Tests: 11, Assertions: 21, Skipped: 3.
Mahara:
$config->version = 2015030419;
$config->series = '15.04';
$config->release = '15.04.4';
DB: mysql 5.5
(mysql Ver 14.14 Distrib 5.5.46, for debian-linux-gnu (x86_64) using readline 6.3)
When running unit tests on a vanilla Mahara 15.04.4 with a mysql database, 3 tests fail:
Configuration read from /var/www/ palnet/ mahara/ phpunit. xml
........EEE
Time: 39.5 seconds, Memory: 36.00Mb
There were 3 errors:
1) WebServiceGroup Test::testRun enabled' LIMIT 2' at line 1] in EXECUTE("SELECT * FROM "tst_config" WHERE "field" = 'webservice_ enabled' LIMIT 2") enabled)
SQLException: Failed to get a recordset: mysqli error: [1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"tst_config" WHERE "field" = 'webservice_
Command was: SELECT * FROM "tst_config" WHERE "field" = ? and values was (webservice_
/var/www/ palnet/ mahara/ htdocs/ lib/dml. php:480 palnet/ mahara/ htdocs/ lib/dml. php:314 palnet/ mahara/ htdocs/ lib/dml. php:291 palnet/ mahara/ htdocs/ lib/mahara. php:885 palnet/ mahara/ htdocs/ webservice/ tests/phpunit/ WebServiceTestB ase.class. php:85 palnet/ mahara/ htdocs/ webservice/ tests/phpunit/ WebServiceGroup Test.php: 28
/var/www/
/var/www/
/var/www/
/var/www/
/var/www/
2) WebServiceInsti tutionTest: :testRun enabled' LIMIT 2' at line 1] in EXECUTE("SELECT * FROM "tst_config" WHERE "field" = 'webservice_ enabled' LIMIT 2") enabled)
SQLException: Failed to get a recordset: mysqli error: [1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"tst_config" WHERE "field" = 'webservice_
Command was: SELECT * FROM "tst_config" WHERE "field" = ? and values was (webservice_
/var/www/ palnet/ mahara/ htdocs/ lib/dml. php:480 palnet/ mahara/ htdocs/ lib/dml. php:314 palnet/ mahara/ htdocs/ lib/dml. php:291 palnet/ mahara/ htdocs/ lib/mahara. php:885 palnet/ mahara/ htdocs/ webservice/ tests/phpunit/ WebServiceTestB ase.class. php:85 palnet/ mahara/ htdocs/ webservice/ tests/phpunit/ WebServiceInsti tutionTest. php:28
/var/www/
/var/www/
/var/www/
/var/www/
/var/www/
3) WebServiceUserT est::testRun enabled' LIMIT 2' at line 1] in EXECUTE("SELECT * FROM "tst_config" WHERE "field" = 'webservice_ enabled' LIMIT 2") enabled)
SQLException: Failed to get a recordset: mysqli error: [1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"tst_config" WHERE "field" = 'webservice_
Command was: SELECT * FROM "tst_config" WHERE "field" = ? and values was (webservice_
/var/www/ palnet/ mahara/ htdocs/ lib/dml. php:480 palnet/ mahara/ htdocs/ lib/dml. php:314 palnet/ mahara/ htdocs/ lib/dml. php:291 palnet/ mahara/ htdocs/ lib/mahara. php:885 palnet/ mahara/ htdocs/ webservice/ tests/phpunit/ WebServiceTestB ase.class. php:85 palnet/ mahara/ htdocs/ webservice/ tests/phpunit/ WebServiceUserT est.php: 28
/var/www/
/var/www/
/var/www/
/var/www/
/var/www/
FAILURES!
Tests: 11, Assertions: 21, Errors: 3.
make: *** [phpunit] Error 2
------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ----
On the same vanilla Mahara 15.04.4, the unit tests pass using postgres:
PHPUnit 4.3.4 by Sebastian Bergmann.
Configuration read from /var/www/ palnet/ mahara/ phpunit. xml
........SSS
Time: 38.13 seconds, Memory: 35.25Mb
OK, but incomplete, skipped, or risky tests!
Tests: 11, Assertions: 21, Skipped: 3.