Commit graph

49 commits

Author SHA1 Message Date
Petr Skoda
7e67b7b79e MDL-19057 more create_table tests for broken structure of table 2010-09-13 19:05:46 +00:00
Eloy Lafuente
67a2f1c1d7 MDL-22804 hyphens in index names - Now the big-four handle/quote them properly 2010-06-16 16:15:23 +00:00
Eloy Lafuente
2ab686ee71 MDL-21868 mssql generator - improve integer meta type detection + test 2010-03-21 19:36:50 +00:00
Eloy Lafuente
d61b3d0269 MDL-21834 DDL tests - fix concurrent temp tables for mssql + 1 incorrect test 2010-03-17 01:34:29 +00:00
Eloy Lafuente
fbff152d22 MDL-21834 DDL tests - reveal some problems using concurrent temp tables 2010-03-16 19:02:18 +00:00
Petr Skoda
117bd74897 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 11:31:16 +00:00
skodak
0629a32e51 MDL-20624 fixed problem with PREV/NEXT dev hack in unittests 2009-10-22 14:40:29 +00:00
stronk7
15a0ffc8f0 MDL-20349 find_sequence_name() is out. No need to use it anymore. 2009-10-11 21:52:40 +00:00
stronk7
17f8278c34 MDL-19057 fix default test, rename one reserved word ("number") and add a few more default tests 2009-09-24 21:55:44 +00:00
stronk7
8127db52db Added some DDL tests to check for proper empty defaults. 2009-09-22 17:57:08 +00:00
stronk7
bad9a043a4 Test drop_enum_from_field() and friends. Interim tests for the 1.9 => 2.0
upgrade. Will be out after branching for 2.1
2009-09-09 12:55:01 +00:00
stronk7
f94f10ca81 temp tables behaviour change: exception if exits on creation (like normal tables) 2009-09-09 09:41:37 +00:00
stronk7
4ff402d68e MDL-15181 temporary tables support. No more differences in table_exists() +
implemented temptables store for mysql.
2009-08-31 15:47:46 +00:00
stronk7
b1ca138716 SQL generators must not execute changes in DB. Just provide the needed SQL
in order to make database_manager to execute it. reset_sequence reimplemented.
2009-08-31 14:23:40 +00:00
stronk7
c6ea7fc24e Clean-up some conflicts introduced in my prev commit. 2009-08-30 23:18:24 +00:00
stronk7
f78c21037e MDL-19057 adding some pending bits 2009-08-30 23:04:35 +00:00
stronk7
f906838a4e Added some more tests to temp tables to show current implementation problems in mysql and mssql. Fix coming soon. 2009-08-29 01:17:57 +00:00
stronk7
eb8f775d97 Fix one wrong test. To get defaults applied, new column must be not null. 2009-08-28 01:14:32 +00:00
stronk7
e871fb87bb workarround MSSQL (RDBMS) bug with float types. Not important as far as
we don't use floats within Moodle, but XMLDB layer supports them.
2009-08-25 21:06:14 +00:00
stronk7
c5ec08d67e MDL-19057, MDL-19974 DDL tests - WIP: from 365 to 473 tests (add/drop field and change_field_type) 2009-07-30 22:12:42 +00:00
skodak
e6c6531cce MDL-19689 fixed strictness constants, thanks Tim 2009-07-04 09:30:59 +00:00
skodak
af12ea93ba MDL-19689 new $strictness parameter in $DB->get_record() and $DB->get_field() family of DML methods 2009-07-03 22:38:56 +00:00
stronk7
122e7ef56c MDL-19057 ddl tests - slowly advancing. Added some test to check for MDL-19695 behaviour 2009-07-02 16:13:30 +00:00
stronk7
86ffb13965 MDL-19057 ddl tests - complete a bit ddl table tests (and partially drop enum fields) 2009-06-28 22:12:20 +00:00
stronk7
db3a1eb8fd MDL-19579 code coverage - prepare ddl & moodlelib tests to support code coverage 2009-06-23 09:30:59 +00:00
skodak
94b6329544 MDL-14679 license header fixes 2009-06-12 08:44:49 +00:00
stronk7
f9ecb1716d MDL-18577 drop enums support - fixed dml/ddl tests to be runnable once enums are out. Some
are failing but will be fixed/completed soon by MDL-19057
2009-05-03 23:46:40 +00:00
skodak
be415e95be MDL-17354 moved reset_sequence into dbmanager 2008-11-21 21:40:50 +00:00
skodak
22d77567a9 MDL-17317 DML: Exceptions used by all drivers now :-) expect some more commits/cleanup soon 2008-11-21 20:09:13 +00:00
skodak
6e22a695d8 MDL-17129 dml: fixed dml exception handling in unit tests 2008-11-05 00:05:18 +00:00
skodak
0bd364c1d7 MDL-17020 dml: native pgsql driver - ddl unittest more robust - fixed typo, thanks ELoy! 2008-10-27 15:54:36 +00:00
skodak
a65b0be43f MDL-17020 dml: native pgsql driver - ddl unittest more robust 2008-10-27 15:50:32 +00:00
nicolasconnault
c7d306e168 MDL-15666 MDL-16486 2008-09-17 14:31:30 +00:00
nicolasconnault
b9c639d6c2 MDL-16483 Refactored install/upgrade code into lib/adminlib. Created an intermediate MoodleUnitTestCase class that overrides simpletest's constructor, destructor and setup/teardown methods. All moodle unit tests must extend this class. 2008-09-16 12:19:43 +00:00
skodak
eee5d9bb85 MDL-14956 DDL exceptions 2008-06-22 16:51:55 +00:00
skodak
3dce78e125 MDL-15247 lib/dmllib.php is now obsolete 2008-06-15 11:35:25 +00:00
skodak
b1f93b1512 MDL-15246 moving all remaining ddl function to adminlib, keeping old lib/ddllib.php only for BC withexisting code; fixed inline docs related to ddl 2008-06-15 10:32:50 +00:00
skodak
251387d087 MDL-14956 basic exception support in Moodle + other minor related refactoring 2008-06-13 17:51:34 +00:00
skodak
a230012cd8 MDL-14905 towards functional DB tests 2008-06-13 08:35:29 +00:00
skodak
3b90a133bf MDL-14905 towards functional DB tests 2008-06-12 18:28:38 +00:00
skodak
5fe3f5c377 MDL-14905 towards functional DB tests 2008-06-12 15:18:11 +00:00
skodak
b936956e2f MDL-14905 towards functional DB tests 2008-06-12 09:38:49 +00:00
skodak
809df0e2b6 MDL-14905 towards functional DB tests 2008-06-10 22:05:29 +00:00
skodak
b922e86b7a MDL-15181 temp table support in ddl/dml 2008-06-07 14:41:01 +00:00
nicolasconnault
73f7ad715e MDL-14905 Started on the DDL functional tests. Added an ugly but temporary hack into error() and print_error(), so that they throw an exception instead of dying when UNITTEST is defined. 2008-05-21 14:59:33 +00:00
nicolasconnault
4cacea3b72 MDL-14905 Completed all core functional tests for database_manager (ddl). Found some API design issues and commented on them using @TODO comments. 2008-05-21 06:34:56 +00:00
stronk7
a8cb94f66f MDL-14863 - 1st iteration: lowercase XMLDB table, field, index, key and statement +
wrapper class to support old syntax (no changes in public API yet)
2008-05-20 23:24:40 +00:00
nicolasconnault
6cef30f7f5 MDL-14905 More tests of database_manager class. Need to replace debugging() with proper exception handling that can be caught and asserted by simpletest. 2008-05-20 13:49:42 +00:00
nicolasconnault
6395aa3f98 MDL-14905 First battery of ddl tests ready. All pass but one, the rename_index test. 2008-05-19 15:36:31 +00:00