1
0
mirror of synced 2024-12-13 14:56:01 +03:00
Commit Graph

1060 Commits

Author SHA1 Message Date
guilhermeblanco
4ea5c8b0a2 SelectExpression rewrite to support dctrn queryComponent. Fixes in DQL. Added more test cases 2008-05-28 06:01:04 +00:00
guilhermeblanco
dfbc7c1cff Changed Doctrine_Query to accept a Doctrine_EntityManager instead of a Doctrine_Connection. Updated Doctrine_EntityManager. Updated test cases and included one new passing test case for SELECT generation. Fixed whitespace bug in DELETE and UPDATE statements. 2008-05-27 04:52:50 +00:00
guilhermeblanco
bc236c59da Finished first parts of SELECT support. Two test cases added and passing. Introduced the concept of DCTRN in queryComponent. Added concept of queryField, which validates for already defined fields in SELECT. 2008-05-27 03:44:08 +00:00
romanb
07a166201d cleanup 2008-05-25 20:57:56 +00:00
romanb
f9938ea6fd custom/magic accessors + test 2008-05-25 20:57:32 +00:00
guilhermeblanco
089a416689 Added more semantical checks. Fixed some tests. 2008-05-24 22:04:14 +00:00
guilhermeblanco
21e0bd3ded More fixes for tests 2008-05-24 19:37:02 +00:00
romanb
0ad6aee389 Merged DQL parser branch to trunk. 2008-05-24 18:18:37 +00:00
romanb
f8017c9c73 Added two missing classes. 2008-05-24 17:37:26 +00:00
romanb
7b711ae70e refactorings. merged hydration bugfix from 0.11. 2008-05-24 17:10:45 +00:00
romanb
74ce82bd50 Initial HYDRATE_SINGLE_SCALAR implementation & test. 2008-05-18 16:21:55 +00:00
romanb
d0ea5705d0 Initial support for scalar hydration (HYDRATE_SCALAR). EntityPersisters born. 2008-05-17 20:04:56 +00:00
romanb
613d08f9ca Merged dbal bugfixes from 0.11. 2008-05-17 12:22:24 +00:00
romanb
7ffd4140cd Doctrine_Record renamed. Hydration refactored. Other refactorings. 2008-05-13 21:20:34 +00:00
romanb
0dd856784c Continued work on new hydration. 2008-05-08 14:17:35 +00:00
romanb
f92773fa1c Added another hydration test. 2008-05-06 21:03:31 +00:00
romanb
ab65ad5b4d Refactorings. Started with new hydrator for 2.0. 2008-05-06 13:41:22 +00:00
romanb
24872ef65f Merged all identity maps into one in the unitofwork. identity map now properly works with hierarchies. 2008-05-01 09:41:47 +00:00
romanb
0370cedc08 Fixed #966. 2008-04-15 22:19:22 +00:00
romanb
66fb71acdd Started playing with isolated hydration tests. 2008-04-12 21:35:21 +00:00
romanb
33c76f620e refactorings 2008-03-23 11:30:29 +00:00
romanb
82efe45c00 fixed tests 2008-03-17 13:44:18 +00:00
romanb
71ed924213 refactorings 2008-03-17 13:26:34 +00:00
romanb
708ef9f217 fixed testcase 2008-03-05 11:29:54 +00:00
romanb
34cfa2f255 added missing testcase 2008-03-05 11:27:46 +00:00
romanb
c5bc8641cc refactorings, a bug fix (#786) and improved performance for the hydration of results from polymorphic queries. 2008-03-05 11:24:33 +00:00
romanb
c1c3f48960 validator refactorings and others 2008-02-23 22:04:39 +00:00
jwage
514e17ea70 Changed all references from phpdoctrine.com to phpdoctrine.org 2008-02-22 18:11:35 +00:00
romanb
e354e527d5 small refactorings 2008-02-16 19:37:51 +00:00
romanb
be5aac16fd small refactorings 2008-02-16 19:10:16 +00:00
meus
f5b0b6bfec added tests for Collection. also fixed a bug with serialization in collections. added copyright header to the two new testfiles 2008-02-15 00:57:34 +00:00
meus
c62abc99c4 added a stub to test the methods that throw exceptions in order to get 100% coverage 2008-02-14 21:14:47 +00:00
meus
b040bbe35d Added tests for Doctrine_Access. It uses annotations for exceptions and to mark functions as tests. Also changed some logic in access and implementing classes to make the abstraction a little bit more solid 2008-02-14 20:20:35 +00:00
romanb
b6a6866b9c refactorings 2008-02-13 10:53:07 +00:00
romanb
eb99219068 refactorings 2008-02-12 12:31:28 +00:00
romanb
81b394cd02 more experiments with the new testsuite. 2008-02-11 22:33:12 +00:00
jwage
fd1fb5742d Fixed issue with autoloading of models. 2008-02-11 21:23:04 +00:00
romanb
48c67aba21 2008-02-11 19:56:26 +00:00
romanb
ade4cd2af1 cosmetics 2008-02-11 17:08:22 +00:00
romanb
662b341212 changes on the new test suite. 2008-02-10 19:20:52 +00:00
romanb
373a0ac994 changes on the new test suite. 2008-02-10 19:08:31 +00:00
romanb
36708c91ba changes on the new test suite. 2008-02-10 17:33:46 +00:00
romanb
ba308004b4 changes on the new test suite. 2008-02-10 17:29:24 +00:00
romanb
db8225e624 changes on the new test suite. 2008-02-10 15:51:55 +00:00
romanb
e929180cc9 changes on the new test suite. 2008-02-10 15:45:30 +00:00
romanb
939a2bd638 changes on the new test suite. 2008-02-10 15:27:01 +00:00
romanb
99de12d7ac changes on the new test suite. 2008-02-10 15:16:24 +00:00
romanb
57a5101e0f changes on the new test suite. 2008-02-10 15:10:29 +00:00
romanb
0061bc827b new test setup refactorings 2008-02-10 14:32:05 +00:00
romanb
45235a15d8 more changes to the new test setup. introduced separate ticket folders. 2008-02-09 19:18:15 +00:00
romanb
00fa362ebb changes to the new test setup. 2008-02-09 18:59:19 +00:00
jwage
e757ccc5e4 General dev on tests. 2008-02-08 23:20:35 +00:00
jwage
66863c4304 Added section for ticket test cases. 2008-02-08 20:50:05 +00:00
jwage
2b06032183 Initial entry of new test structure. 2008-02-08 19:35:27 +00:00
jwage
b641d2c5b3 Moved tests to an old location. 2008-02-08 17:27:54 +00:00
romanb
0892647f7a Joined strategy bugfix and cosmetics. 2008-02-07 10:40:27 +00:00
romanb
56407f785a Merged r3518:r3700 from branch to trunk. Branch to be deleted, soon. Development continues in trunk. 2008-02-03 21:29:57 +00:00
pookey
9962e27620 copying test case for ticket 749 to 0.10 and branch - thanks dbrewer 2008-01-26 22:19:32 +00:00
pookey
e280b4fbec test showing that using count() with enums does not work. 2008-01-26 21:43:56 +00:00
jwage
8cc89beb41 Moved Doctrine_Migration_Builder and Doctrine_Import_Builder to Doctrine_Builder_Migration and Doctrine_Builder_Record. Updated code to work with new class names. 2008-01-23 16:47:58 +00:00
jwage
02c57f5977 fixes #688 2008-01-23 08:04:54 +00:00
pookey
f9ee88a5c3 moving ticket to all branches 2008-01-22 23:25:20 +00:00
jwage
689a4c6f45 Connection refactoring to allow create/drop database functionality for sqlite. fixes #480 2008-01-22 21:42:17 +00:00
jepso
04e4a9ce26 added assertNull() and assertNotNull() 2008-01-18 19:35:15 +00:00
pookey
8edb3a9bc2 refs #732 2008-01-16 22:51:37 +00:00
romanb
71d1150e3f Second merge from experimental branch to trunk. 2008-01-12 19:49:11 +00:00
romanb
c6e2086798 more small refactorings of the new joincondition tests. 2008-01-11 14:06:19 +00:00
romanb
62860d5191 fixed joincondition tests. 2008-01-11 13:53:30 +00:00
guilhermeblanco
4f81ab61b2 Added support to leftJoin and innerJoin parameters. Included some tests that failed due to an existent Doctrine bug. 2008-01-10 20:02:41 +00:00
lsmith
73d63af1f1 - fixed tests to expect DEFAULT NULL when no default is specified on nullable non lob columns 2008-01-10 15:50:20 +00:00
lsmith
3cd0274063 - DQL still uses the CONCAT() and not the || syntax 2008-01-10 13:25:31 +00:00
lsmith
982205b8fa - fixed tests to expect DEFAULT NULL when no default is specified on nullable non lob columns 2008-01-10 13:18:33 +00:00
lsmith
88dfc98704 - fixed test cases to expect the || SQL standard syntax 2008-01-10 13:17:05 +00:00
lsmith
e98035999a - ws fixes 2008-01-10 13:16:00 +00:00
lsmith
cb1a71f163 - fixed test cases to expect the || SQL standard syntax 2008-01-10 13:15:34 +00:00
lsmith
c6b6669a54 - typo fix 2008-01-10 13:14:23 +00:00
Jonathan.Wage
c456e4c788 Merged test case from 0.9 for testing loading NestedSet in setUp() method 2008-01-09 15:59:34 +00:00
zYne
500783aa31 fixes #718 2008-01-08 21:22:37 +00:00
romanb
d9112ad1d7 Merged current state of my experimental branch back to trunk. 2008-01-05 19:55:56 +00:00
zYne
d2bff7d31a added tests for updating I18n records, fixes #672 2008-01-04 18:23:32 +00:00
romanb
b994c1a6f9 Fixed #697. 2007-12-28 11:51:48 +00:00
Jonathan.Wage
d1df55e316 Refactorings for schema files and Doctrine_Record builder. More to come but got held up on some things that zYne- must fix first. 2007-12-19 22:41:11 +00:00
pookey
6365df0d66 refs #681 : adding failing test case 2007-12-16 20:12:27 +00:00
tamcy
4516678f5c add test case for #626 regarding Doctrine_Table->find() 2007-12-15 14:48:00 +00:00
zYne
d76de7211e 2007-12-13 11:59:13 +00:00
romanb
79b79909ad Refactored transactions. Fixed #464. 2007-12-12 15:52:12 +00:00
tamcy
b309933a4f commit test case for #673 2007-12-12 15:01:38 +00:00
romanb
910ab71938 Put plugin tests back in. 2007-12-12 09:03:25 +00:00
tamcy
41defae276 add ticket #438 and #638 to run.php 2007-12-12 04:21:36 +00:00
zYne
cf8012fdf0 drafting the CTICA test case 2007-12-11 22:37:19 +00:00
zYne
7a78c39e81 2007-12-10 19:12:13 +00:00
jackbravo
78195944be Added synchronizeWithArray method and unset functionality for relations
The unset functionality is not working for foreignKey relations
2007-12-09 01:56:53 +00:00
dbrewer
7e0a902aba Added test case to demonstrate that delimiters in
Doctrine_Query_Tokenizer::bracketExplode() were case sensitive, and 
changed tokenizer to make them case insensitive.
2007-12-07 03:23:09 +00:00
romanb
af657cbe69 Introduced a new attribute ATTR_AUTOLOAD_TABLE_CLASSES that can be used to control whether Doctrine should try to autoload custom table class files when looking for them. 2007-12-06 19:02:29 +00:00
pookey
599446ad07 adding test case for previous commit 2007-12-04 15:25:52 +00:00
guilhermeblanco
806e9c63e6 Fixed default definition in date* fields 2007-12-03 17:56:56 +00:00
tamcy
8557d9d87d #438: Updated test case 2007-12-02 09:06:19 +00:00
romanb
fc310cf36c Fixed #626. Commented out plugin tests due to a fatal error. 2007-12-01 11:18:43 +00:00
jackbravo
a73a73da66 Fix tickets #583 and #576 2007-12-01 01:21:55 +00:00
jackbravo
fcd427d3d7 Added a line break at the end of the tests 2007-11-30 22:16:22 +00:00
tamcy
8bb65f0cf6 #438: Updated test case syntax 2007-11-29 15:09:54 +00:00
jackbravo
b329ae870b Added a $deep argument to refresh
The default is set to false because fetching the relations deletes
previously fetched relations =P. This is, if you fetched an aggregated
value (SUM, COUNT), it wont be refreshed, it will be overwritten by the
actual related values.
2007-11-28 19:35:44 +00:00
Jonathan.Wage
9eac2776ea Consolidated a few things. Initial entry of Inflector class. Moved some methods from Doctrine base class to Doctrine_Lib and Doctrine_Inflector. 2007-11-28 02:21:42 +00:00
meus
42927503f5 new coverage data 2007-11-25 20:32:49 +00:00
zYne
3829b0f2d4 fixed some tests 2007-11-25 20:23:53 +00:00
romanb
05147fbeb6 Completed implementation of the query cache. 2007-11-25 19:07:30 +00:00
romanb
352ab0de40 renamed the default hydrator. started to implement a query cache. 2007-11-25 15:57:08 +00:00
romanb
4e4320d99e reenabled the plugin tests. they seem to work now. 2007-11-25 13:03:52 +00:00
zYne
3baf1af60e 2007-11-25 12:02:58 +00:00
romanb
90d472eb98 prepared the tokenizer for getting a state and being a full-fledged object 2007-11-24 18:58:33 +00:00
romanb
78f5a2edcb More refactorings. Commented out the plugin tests for now. They seem to wreak havoc with a lot of other tests (especially validator tests) and i havent found the reason yet. 2007-11-24 18:11:09 +00:00
zYne
fbd4e86912 2007-11-22 21:19:02 +00:00
romanb
929273a0f1 More refactorings and small speed improvements on the default hydrator. 2007-11-21 14:29:59 +00:00
romanb
156cfd4a27 Introduced a separation of the 2 concerns: 1) Query construction 2) Result hydration.
Makes it easier to see the dependencies between these two concerns, cache the results of the query parsing process later on, implement & use alternative hydrators to experiment with different algorithms etc. etc.
Other small refactorings.
2007-11-20 14:26:42 +00:00
jepso
8195898ff7 fixed another test case broken by changeset 3187 2007-11-19 19:16:15 +00:00
jepso
01f2ee7f97 fixed search tests that were broken by changeset 3187 2007-11-19 18:03:30 +00:00
romanb
d645b1659c More refactorings 2007-11-19 17:55:23 +00:00
romanb
82432246b9 Doctrine_Migration::setTableName now takes the ATTR_TBLNAME_FORMAT into account 2007-11-18 16:42:33 +00:00
romanb
cfc7d4e423 Refactoring. Started to introduced a clear separation between column names and field names (aka column aliases).\nDoctrine_Connection, DQL Parser classes/methods map field names => column names.\nDoctrine_Hydrate maps column names => field names during hydration.\nColumn names are only stored in Doctrine_Table:: and Doctrine_Table::.\nRelations use column names in 'local'/'foreign'.\nWhen using field names (column aliases) you need to use the column names in 'local'/'foreign' when setting up a relation (hasOne/hasMany), not the field names.\n\n In other words column names are only used to communicate with the database. field names are used everywhere else. the casing of field names does not matter. column names are forced to lower case for portability. If you dont use field names (column aliases) your column names are your field names (and therefore all lowercase). 2007-11-18 16:06:37 +00:00
adrive
23cc4af209 Changed author in Ticket #480 test case to me 2007-11-16 10:35:03 +00:00
adrive
18c40c3b5e Added test case for Ticket #480 2007-11-16 09:53:02 +00:00
zYne
c97fc19da4 2007-11-15 22:12:00 +00:00
zYne
de16517991 2007-11-15 22:01:39 +00:00
wolfpakz
dc0616ffb0 - Fixed order of assertions in export model from directory test. 2007-11-15 17:05:53 +00:00
zYne
2e5dd84fc2 tests for CTI column referencing in DQL 2007-11-15 13:45:41 +00:00
Jonathan.Wage
5c6e8f8eb9 New coverage for parser, yaml schema parsing, a few fixes. 2007-11-15 05:16:31 +00:00
zYne
8e127bfc33 added Doctrine_Plugin_TestCase 2007-11-13 22:33:38 +00:00
dbrewer
2ee78d7d85 Added test case and models for sfDoctrine-style inheritance in record
and table classes.
2007-11-12 01:45:23 +00:00
meus
10d1ff97a6 removing invalid testcase 2007-11-10 13:40:06 +00:00
zYne
ad42e81ff3 tests for abstract base class in CTI inheritance tree 2007-11-10 13:23:02 +00:00
zYne
c6a0dd655b tests for deleting CTI records 2007-11-10 13:09:14 +00:00
zYne
199dbbc23f more tests for the class table inheritance 2007-11-10 01:01:23 +00:00
zYne
11ee8e33bb tests for basic CTI fetching 2007-11-09 13:23:39 +00:00
meus
f81e4fdcc7 Added failing testcase references #589 2007-11-09 00:19:14 +00:00
zYne
d1c23818f9 tests for inserting CTI record instances 2007-11-08 22:56:03 +00:00
zYne
c6e99ade91 tests for CTI exporting 2007-11-08 22:15:37 +00:00
meus
7efe3f5c3a coveragereport 2007-11-08 22:14:39 +00:00
dbrewer
11ee3cf9ad Added test case for #587, and models to support that test case. 2007-11-08 21:44:11 +00:00
samw3
07bacdfe78 MySQL migration unit tests 2007-11-08 17:12:11 +00:00
zYne
af4f85ae69 some tests for class table inheritance 2007-11-07 23:00:24 +00:00
meus
0b24b4551e coverage report stuff 2007-11-07 16:12:14 +00:00
meus
2ef3a63be6 fixed grouping and filtering of tests from the browser 2007-11-05 00:29:52 +00:00
meus
4640cb2be4 coverage report against head 2007-11-03 21:02:50 +00:00
meus
ea803566b6 fix dsn so that sqlite:///full/unix/path/test.db and sqlite://c:/full/windows/path/test.db works 2007-11-03 20:34:19 +00:00
meus
aacfe7288b changed the tests so that DSN sqlite parsing works. It does not use the syntax in the manual. 2007-11-03 14:28:35 +00:00
meus
7d6185873d fixed diffing of arrays if an assert_equals fails 2007-11-03 14:26:23 +00:00
meus
79e52571aa added a convenience method and new coverage stuff 2007-11-02 16:07:11 +00:00
Jonathan.Wage
75c630951c Fixed test case. 2007-11-02 00:10:28 +00:00
Jonathan.Wage
8bfbd6a7c7 Clean up, initial entry of root txt files, fixed a few broken unit tests. New documentation. 2007-11-01 19:45:36 +00:00
zYne
13f2ea77d9 2007-10-29 22:58:43 +00:00