Eloy Lafuente (stronk7)
fbb829b82d
MDL-30739 add one test to confirm the solution is cross-db
2011-12-20 02:23:55 +01:00
Petr Skoda
fed02be153
MDL-30147 do not expect text comparison exceptions when not in debug mode
...
Unfortunately the column type fetching is too expensive, we do extra verification in debug mode only.
2011-11-19 09:44:33 +01:00
Petr Skoda
a453ec079f
MDL-30147 optional verification if dml exception when table missing
2011-11-19 09:39:07 +01:00
Eloy Lafuente (stronk7)
a8097d6dda
MDL-30147 dml - one more test behavior without params
2011-11-19 09:27:09 +01:00
Eloy Lafuente (stronk7)
8f201c9ded
MDL-30147 dml - added some tests demoing bad get_columns() behavior
2011-11-19 09:27:09 +01:00
Petr Skoda
69ac5d478f
MDL-30147 do not rely on dml exception type outside of dml layer
...
The trouble is that dml driver methods (insert, update, select) are not guaranteed to return the same exception class for various db problems and coding style issues. The recommended practice is to catch dml_exception only.
2011-11-19 09:25:11 +01:00
Eloy Lafuente (stronk7)
12dfd6df01
MDL-30026 improve session lock - unit tests & minor comment fixup
2011-11-13 19:05:57 +01:00
Eloy Lafuente (stronk7)
44a9630623
MDL-29815 dbtest - added one test_get_records_sql_complicated related test
2011-10-25 17:37:34 +02:00
Eloy Lafuente (stronk7)
fc0aebb595
MDL-29496 unittests - verify COALESCE() cross-db compatibility
2011-10-18 15:58:56 +08:00
Eloy Lafuente (stronk7)
c75d9b6700
MDL-29567 unit tests - add some tests to cover negative defaults in numerical cols
2011-09-29 01:15:37 +02:00
Eloy Lafuente (stronk7)
12e89a0a69
MDL-29566 unit tests - add some tests to cover get_columns() with number/float columns
2011-09-29 00:13:44 +02:00
Eloy Lafuente (stronk7)
018213bed2
MDL-29415 xmldb - fix get_columns() in oracle to get char based lengths + test
2011-09-19 00:34:10 +02:00
Petr Skoda
148c65bfc8
MDL-29295 do not use strtok in dml and ddl layers
...
This prevents clobbering of internal pointer when code calling DML
uses strtok too. Unit test added to prevent future uses.
2011-09-14 00:19:55 +02:00
Aparup Banerjee
e2e1cf53db
Merge branch 'MDL-29198' of git://github.com/stronk7/moodle
2011-09-05 12:10:32 +08:00
Eloy Lafuente (stronk7)
ee91760321
MDL-28080 DML unit tests - cover tweak_param_names() and the new 30 chars limit exception
2011-09-01 19:46:30 +02:00
Eloy Lafuente (stronk7)
4b5c84ae30
MDL-29198 DB - make delete_records transactional safe when needed
2011-09-01 11:05:21 +02:00
Eloy Lafuente (stronk7)
1ccfd8dcbf
MDL-26819 quiz statistics - use cross-db GROUP BY expression
2011-08-28 22:12:40 +02:00
Eloy Lafuente (stronk7)
86f456d8f0
MDL-27325 Adding some extreme, but 32bits safe, float tests
2011-05-06 16:07:17 +02:00
Eloy Lafuente (stronk7)
0c4c6d468a
MDL-27325 Now also testing update_record and set_field
2011-05-06 16:07:17 +02:00
Tim Hunt
6531aff715
MDL-27325 New DB unit tests to demonstrate the problem.
2011-05-06 16:07:17 +02:00
Petr Skoda
c49bec382c
MDL-27148 fix unit tests to accept arbitrary named params format from get_in_or_equal
2011-04-14 15:12:33 +02:00
Eloy Lafuente (stronk7)
c7ce62f9c8
MDL-26542 get_in_or_equal - adding $onemptyitems + tests
2011-03-30 18:22:53 +02:00
Eloy Lafuente (stronk7)
7a5852c857
Merge branch 'w12_MDL-26844_20_limittests' of git://github.com/skodak/moodle
2011-03-21 15:35:17 +01:00
Petr Skoda
3d24c50144
MDL-26844 fix use of invalid integers in dml tests
2011-03-16 16:08:55 +01:00
Petr Skoda
200b4556d7
MDL-26842 make sure query parameter names are not reserved words in oracle driver
2011-03-16 15:20:32 +01:00
Aparup Banerjee
7fedc2c25e
lib MDL-26458 adding unit tests to test cursors.
...
-added test with limits and order by with table aliases to test_get_records_sql()
-added test_recordset_locks_delete() and test_recordset_locks_update()
- added out of range limits test to test_get_records_sql()
2011-03-05 01:18:36 +08:00
Petr Skoda
431ac39634
MDL-26623 fix file permissions
...
The permissions are now going to be verified as part of the weekly release process.
2011-03-01 12:26:49 +01:00
Eloy Lafuente (stronk7)
d911c72bf9
MDL-26333 dml - fix test (AS not in tables/views)
2011-02-09 18:21:37 +01:00
Eloy Lafuente (stronk7)
9ac8ff207c
dml-sqlsrv MDL-26025 whitespace fix
2011-02-07 22:33:26 +01:00
Sam Hemelryk
046ff94ec8
dml-sqlsrv MDL-26025 Fixed up typo in simpletests and added a couple more tests
2011-02-07 11:23:30 +08:00
Sam Hemelryk
7e1bd89d32
sqlsrv MDL-26025 Fixed up numerous issues with the limit_to_top_n function
2011-02-07 10:33:49 +08:00
Eloy Lafuente (stronk7)
e8615eaf0e
MDL-25749 dml - added integer-exclusive concat tests
2010-12-22 18:48:45 +01:00
Eloy Lafuente
39cf0e8e74
MDL-24863 unit tests - tidy up a bit some tests
2010-11-18 14:02:02 +00:00
Petr Skoda
9ecf4f44e4
fixing regression in the last commit
2010-11-18 06:26:27 +00:00
Aparup Banerjee
011bfd2a54
database MDL-24863
...
- added restricting text conditions to where_clause , it throws a dml_exception when detected.
- also added to where_clause throwing dml_exception for field that doesn't exist in table.
- added unit tests for text condition restricting.
- added 2 unit tests for set_field_select() testing 'auto-casting params to int problem' fix
2010-11-18 06:00:51 +00:00
Eloy Lafuente
a018adf038
MDL-25276 dml - completed sql_cast_char2int/real tests to reveal some problems
2010-11-18 01:10:41 +00:00
Eloy Lafuente
3a55ee2f5e
MDL-25268 dml - improved limitnum/limitfrom regexp in ms drivers + tests
2010-11-17 10:39:56 +00:00
Eloy Lafuente
5d31799af8
MDL-24397 dml - added some tests for limits with subqueries
2010-10-28 10:53:55 +00:00
Petr Skoda
422b75a712
mysql comparison weirdness finally detected
2010-10-04 08:21:53 +00:00
Petr Skoda
e5d1410b23
enhanced int comparison test
2010-10-04 08:12:28 +00:00
Petr Skoda
4e6e2a51f6
adding a test that should detect problems with string x int comparison
2010-10-04 08:00:45 +00:00
Petr Skoda
ac6f1a82f9
MDL-24321 switching to stdClass
2010-09-21 07:57:42 +00:00
Petr Skoda
4e9996127a
new test for diagnosing of Postgresql 9.0 problems with BLOBS
2010-09-20 21:59:34 +00:00
Petr Skoda
27323c97ab
MDL-19057 more tests for unlikely id reuse
2010-09-16 07:38:36 +00:00
Petr Skoda
4a8b5434e5
MDL-19057 fixed incorrect use of conditions
2010-09-14 19:17:56 +00:00
Petr Skoda
ebb8d35846
MDL-19057 fixed param test
2010-09-14 18:45:58 +00:00
Petr Skoda
ebdf7f7e4d
MDL-19057 refactored code used for detection of debug output
2010-09-13 18:55:41 +00:00
Petr Skoda
969cb35fdf
MDL-19057 import_record() tests completed
2010-09-13 18:32:47 +00:00
Petr Skoda
258a66dcce
MDL-19057 fixed incorrect array_shift
2010-09-13 09:16:38 +00:00
Petr Skoda
e586aa397e
MDL-19057 improved bit operation tests - now testing placeholders too
2010-09-13 09:05:46 +00:00