mark_story
8aabf3689e
Making BehaviorCollection more consistent with other object collections.
...
Fixing failing tests caused by not being updated when behavior changed.
2010-11-21 14:42:13 -05:00
José Lorenzo Rodríguez
40418de218
Freeing up some memory in dbos after the result set has been completly fetched.
...
Adding dbo_mysql and dbo_postgres to the AllDAtabase testsuite
2010-11-16 23:59:24 -04:30
mark_story
d12c232d8a
Merge branch '1.3' into merger
...
Conflicts:
app/config/core.php
cake/console/templates/skel/config/core.php
cake/dispatcher.php
cake/libs/controller/components/auth.php
cake/libs/view/helpers/form.php
cake/tests/cases/libs/cake_test_case.test.php
cake/tests/cases/libs/controller/components/security.test.php
cake/tests/cases/libs/model/models.php
cake/tests/cases/libs/router.test.php
cake/tests/cases/libs/view/helpers/paginator.test.php
cake/tests/lib/cake_test_case.php
2010-11-16 21:48:13 -05:00
José Lorenzo Rodríguez
f2b707ac0b
Merge remote branch 'origin/2.0' into feature/2.0/pdo
...
Conflicts:
cake/tests/cases/libs/model/datasources/dbo/dbo_mysql.test.php
cake/tests/cases/libs/model/datasources/dbo/dbo_mysqli.test.php
cake/tests/cases/libs/model/datasources/dbo_source.test.php
2010-11-16 21:54:42 -04:30
mark_story
76a80c262e
Fixing failing test caused by name() being able to quote things better now.
2010-11-13 12:04:22 -05:00
mark_story
18bb5f6b8b
Removing =& operators for construction of objects.
2010-11-12 23:05:44 -05:00
José Lorenzo Rodríguez
91e2d88900
Moving method back to DboSourceTest, as it was very difficult to adapt it to use mock objects
2010-11-11 00:22:08 -04:30
José Lorenzo Rodríguez
106379b7ef
Removing all methods with mysql syntax or dependent on anyway of this Dbo out form DboSourceTest.
2010-11-10 23:31:54 -04:30
José Lorenzo Rodríguez
d46f953357
Changing test case to reflect that stats option was removed from DboSource::execute and merged into "log" option
2010-11-10 23:10:13 -04:30
José Lorenzo Rodríguez
b20becc0b7
Extracting remaning methods with Mysql specific syntax out of DboSourceTest
2010-11-09 01:43:23 -04:30
José Lorenzo Rodríguez
539b90749a
Moving more methods out of DboSourceTest
2010-11-09 01:38:13 -04:30
José Lorenzo Rodríguez
66779eecfa
Moving some more method out of DboSourceTest
2010-11-09 01:26:15 -04:30
José Lorenzo Rodríguez
47c6132b24
cleaning up some tests, adding missing parameters in DboSource to match declaration on DataSource
2010-11-09 01:25:05 -04:30
ADmad
eb76ab95f2
Fixed issue where Model::saveAll() would incorrectly commit a transaction which was not started in that function call itself.
2010-11-06 09:33:50 +05:30
José Lorenzo Rodríguez
3a8016b875
Even more methods containing quoting specific to mysql out of DboSource
2010-11-03 19:59:15 -04:30
José Lorenzo Rodríguez
6028705c72
Moving more methods out from DboSourceTest
2010-11-03 19:52:49 -04:30
José Lorenzo Rodríguez
86f1309a54
iMoving a couple of methods out from DboSourceTest
2010-11-03 19:40:09 -04:30
José Lorenzo Rodríguez
f2f378ca73
Moving testGenerateInnerJoinAssociationQuery out from DboSourceTest
2010-11-03 19:35:15 -04:30
José Lorenzo Rodríguez
605a6b17a5
Moving another method out of DboSourceTest
2010-11-03 19:18:51 -04:30
José Lorenzo Rodríguez
146af7faa5
Stating to move quoting test out from dbosource into mysql test
2010-11-03 19:14:22 -04:30
José Lorenzo Rodríguez
eedd823fd8
Merge remote branch 'origin/2.0' into feature/2.0/pdo
2010-11-03 00:23:18 -04:30
mark_story
bff711e2dc
Merge branch '2.0-console' into 2.0
...
Conflicts:
cake/console/shells/acl.php
cake/tests/cases/console/libs/tasks/plugin.test.php
2010-11-02 23:49:19 -04:00
Mark Story
94f9f7afeb
Fixing failing tests from merge with 1.3. Most tests were failing due to internal changes and PHPUnit being more specific than SimpleTest.
2010-10-31 22:42:16 -04:00
Mark Story
08e7bcb7ab
Merge branch '1.3' into integration
...
Conflicts:
app/config/core.php
cake/console/libs/acl.php
cake/console/templates/skel/config/core.php
cake/console/templates/skel/webroot/test.php
cake/dispatcher.php
cake/libs/view/errors/missing_action.ctp
cake/libs/view/helpers/form.php
cake/tests/cases/libs/cache/memcache.test.php
cake/tests/cases/libs/controller/controller.test.php
cake/tests/cases/libs/log/file_log.test.php
cake/tests/cases/libs/model/cake_schema.test.php
cake/tests/cases/libs/router.test.php
cake/tests/cases/libs/view/helpers/ajax.test.php
cake/tests/groups/bake.group.php
cake/tests/groups/behaviors.group.php
cake/tests/groups/i18n.group.php
cake/tests/groups/javascript.group.php
cake/tests/lib/reporter/cake_cli_reporter.php
2010-10-31 21:56:59 -04:00
mark_story
f29bb562cb
Adding a test for saving blank fields on a model. Closes #1243 .
2010-10-29 00:13:09 -04:00
mark_story
f5fd069583
Applying patch from 'Justas Butkus' to fix CakeSchema::compare()
...
Fixes issues with comparing null == '' and adds a new protected method to handle null aware array difference generation.
Tests added.
Fixes #1206
2010-10-27 23:03:31 -04:00
José Lorenzo Rodríguez
8d80188c6c
Updating more tests with boolean handling, maybe in the near future fixing this for both mysql and postgres is coming
2010-10-26 21:59:48 -04:30
José Lorenzo Rodríguez
eb49181c48
Bringing more boolean tests up to date in postgres
2010-10-26 21:49:03 -04:30
José Lorenzo Rodríguez
b3d8a619a3
Updating test for booleans in postgres
2010-10-26 21:46:29 -04:30
mark_story
3639f52117
Adding a test for containable modifying return. Refs #1219
2010-10-26 21:39:48 -04:00
José Lorenzo Rodríguez
ff9748c6ba
Adding some workaround in traslate behavior tests for postgres, all tests passing now
2010-10-26 20:34:25 -04:30
José Lorenzo Rodríguez
cc32ac8904
Simplifying tests for translatable behavior as they were hard to understand
2010-10-26 17:55:50 -04:30
José Lorenzo Rodríguez
16524bc72f
Fixing test case for translate behavior
2010-10-26 17:53:33 -04:30
José Lorenzo Rodríguez
25c213e976
Preventing zero length of fields using prostgres
2010-10-25 20:25:07 -04:30
José Lorenzo Rodríguez
cec3512835
Fixing more errors in tests related to type casting
2010-10-25 19:47:32 -04:30
José Lorenzo Rodríguez
f027bf0f7b
Fixing some errors in tests
2010-10-25 19:47:00 -04:30
José Lorenzo Rodríguez
1acb619e75
Implementing DboSource::insertMulti so it uses prepared statements, also changing internal uses of this method to reflect the new api, this brings as consequence a better abstracttion for datasources in model and fixtures, but breaks BC
2010-10-24 19:59:54 -04:30
José Lorenzo Rodríguez
34813ab35c
Merge remote branch 'origin/2.0' into feature/2.0/pdo
2010-10-24 19:55:02 -04:30
Graham Weldon
d3e0ddbb0e
Update copyright years.
2010-10-25 07:58:22 +11:00
mark_story
a72d6da9c3
Making plugin schema tests less likely to stomp on tables they shouldn't be changing.
2010-10-23 00:54:39 -04:00
José Lorenzo Rodríguez
c7763b316e
Fixing some boolean issues in DboPostgres
2010-10-21 20:34:11 -04:30
José Lorenzo Rodríguez
0ffe6de9e4
Allowing multiple sql sentences to be executed only for creting or altering databases
2010-10-20 23:57:00 -04:30
mark_story
7c296211ef
Making generating schema for connections with prefixes work correctly. The prefix needs to be removed so that when tables are created or updated they do not get the prefix added twice.
...
Moving tests around. Fixes #1180
2010-10-20 23:17:04 -04:00
mark_story
498417203b
Making DboSource::fields() use cacheMethod() so it respects $cacheMethods.
...
Test added.
Fixes #1211
2010-10-20 22:28:31 -04:00
José Lorenzo Rodríguez
d0fc2fd171
Fixing describing of table columns for postgres
2010-10-19 00:48:08 -04:30
José Lorenzo Rodríguez
5c87daf083
Implementing listSources for postgres
2010-10-18 00:08:34 -04:30
José Lorenzo Rodríguez
aedf69dee1
More refactoring to DboSource::value()
2010-10-17 23:55:11 -04:30
José Lorenzo Rodríguez
6778d4b565
Updating test case for floats
2010-10-17 23:42:12 -04:30
José Lorenzo Rodríguez
d9c9a32ff3
Refactoring DboSource::value() so postgres and mysq behavior is the same, updating test case
2010-10-17 23:38:55 -04:30
Juan Basso
d771239104
Fixed support to save XML data in Models.
2010-10-17 22:47:43 -02:00
José Lorenzo Rodríguez
ee4add9c32
Fixing test case
2010-10-17 15:53:44 -04:30
José Lorenzo Rodríguez
f215cd01f1
Fixing tests for CakeSchema
2010-10-17 15:25:04 -04:30
José Lorenzo Rodríguez
cbdfb3f76e
Removing all references to mysqli
2010-10-17 11:49:17 -04:30
José Lorenzo Rodríguez
78717ab45c
Fixing some test cases
2010-10-17 11:29:49 -04:30
José Lorenzo Rodríguez
7e2fe43ee3
FIxing query caching to take in account bound parameters
2010-10-17 10:51:54 -04:30
José Lorenzo Rodríguez
183e9c92df
Removing some asignations by reference
2010-10-17 10:18:46 -04:30
José Lorenzo Rodríguez
082873721c
Changing param order in execute() to maintain compatibility, making all tests pass
2010-10-16 20:28:07 -04:30
José Lorenzo Rodríguez
25915bd931
Merge remote branch 'origin/2.0' into feature/2.0/pdo
2010-10-16 14:20:58 -04:30
José Lorenzo Rodríguez
d83c95cf46
Fixing bug in DboMysql::value()
2010-10-16 14:01:01 -04:30
José Lorenzo Rodríguez
88a2fb5058
Fixing bug in DboMysql::describe()
2010-10-16 13:44:16 -04:30
José Lorenzo Rodríguez
17f24719ee
Replacing reference assignation for normal assignation in test case
2010-10-16 13:32:59 -04:30
José Lorenzo Rodríguez
84283ed6f3
Fixing DboMysql::listDetailedSources()
2010-10-16 13:28:18 -04:30
José Lorenzo Rodríguez
e03cbcb167
Fixing model describing and making pass testBlobSaving
2010-10-16 10:23:13 -04:30
José Lorenzo Rodríguez
526205b546
Fixing test case in DboMysql
2010-10-15 18:41:17 -04:30
José Lorenzo Rodríguez
5e80cf8ff7
Improving DboMysql::index()
2010-10-15 17:27:36 -04:30
José Lorenzo Rodríguez
0fb2ac0285
Chaging implementation of DboMysql::getVersion(), improving connection options
2010-10-15 17:03:59 -04:30
José Lorenzo Rodríguez
70ed9a7b12
Fixing DboMysql::index() method
2010-10-15 17:02:37 -04:30
José Lorenzo Rodríguez
dc362d1a38
Adding test for DboMysql::getEncoding()
2010-10-14 23:18:07 -04:30
José Lorenzo Rodríguez
09e06d52b9
Implementing DboMysql::getVersion()
2010-10-14 23:15:17 -04:30
José Lorenzo Rodríguez
b8479459d6
Inital work for connecting to mysql using PDO and gettng the table list, testing is easier as it now uses mocks
2010-10-14 01:10:51 -04:30
mark_story
0c070f7131
Fixing tests that were failing due to SimpleTest being less sensitive to types than PHPUnit.
...
Fixing tests that were failing due to XmlHelper being removed in 2.0.
2010-10-13 23:09:55 -04:00
mark_story
f19e3d501c
Merge branch '1.3' into integration
...
Conflicts:
cake/libs/model/cake_schema.php
cake/libs/model/datasources/dbo_source.php
cake/libs/model/model.php
cake/libs/view/helpers/form.php
cake/libs/view/view.php
cake/libs/xml.php
cake/tests/cases/libs/model/model_delete.test.php
cake/tests/cases/libs/view/view.test.php
cake/tests/cases/libs/xml.test.php
2010-10-13 22:30:40 -04:00
mark_story
3ab77017ae
Fixing OpenTest license mentions to use MIT License
...
Fixing PHP versions 4 and 5 to only be PHP5.
2010-10-03 12:31:21 -04:00
mark_story
b908365f9d
Changing the @license tag on test files, as tests can now be MIT like
...
the rest of CakePHP.
2010-10-03 12:27:27 -04:00
mark_story
5e26d282a1
Fixing connection specific schema generation
...
Fixing missing table errors when reading schema for specific connections.
Tests updated to check that tables not on a connection are never touched. Fixes #1106
2010-09-30 23:22:57 -04:00
mark_story
c573fd0432
Fixing issue where a beforeDelete() could trigger a table truncation.
...
Moving the exists check below beforeDelete() and behavior->beforeDelete() so any records deleted in the callbacks will not exist when db->delete() is called. Test updated. Fixes #250
2010-09-29 23:31:41 -04:00
evilbloodydemon
38e128b597
test for #250
...
Signed-off-by: mark_story <mark@mark-story.com>
2010-09-29 23:06:47 -04:00
mark_story
b08aba8e86
Adding a missing rollback when validation on an associated record fails, and validate = first. Fixes #1147
2010-09-28 23:37:28 -04:00
mark_story
9992cff96c
Adding another test for #250 .
2010-09-28 22:26:54 -04:00
José Lorenzo Rodríguez
0eaf437fe4
Merge remote branch 'origin/2.0' into 2.0-phpunit-upgrade
2010-09-27 23:19:47 -04:30
José Lorenzo Rodríguez
2635733aba
Merge branch '2.0' into 2.0-phpunit-upgrade
2010-09-27 22:42:10 -04:30
José Lorenzo Rodríguez
ba168d1a72
Initial steps towards migrating to phpunit 3.5
2010-09-27 22:37:23 -04:30
mark_story
92b57d81ee
Moving common setup and teardown functionality in to CakeTestCase.
...
Removing repeated setup/teardown logic from test cases.
Switching tests to use setup/teardown instead of startTest/endTest.
2010-09-25 21:36:49 -04:00
mark_story
843ada240a
Removing AppController from ErrorHandler test as it can make testing harder.
...
Removing broken buffering from tests that trigger errors / exceptions.
Adding a loadHelper() to the test_app layout so the layout always has the required helper.
2010-09-25 10:41:08 -04:00
mark_story
714d8298c4
Fixing all tasks include.
...
Removing drop table queries that cause other tests to fail.
2010-09-25 01:25:42 -04:00
mark_story
26057c59c4
Fixing issue in DboSource test case where buffer would eat all the output.
...
Removing dead tests from TestManager test.
2010-09-25 01:13:01 -04:00
mark_story
6974a8752f
Removing a test that used eval(). It caused issues in group tests.
2010-09-24 23:30:02 -04:00
José Lorenzo Rodríguez
5c3b4cfcc4
Removing all uses of the test_suite connection in the test cases
2010-09-24 23:30:01 -04:00
mark_story
e6824e6a41
Fixing duplicate class names.
2010-09-24 23:30:01 -04:00
mark_story
03d99d43be
Fixing unbalanced ob_start().
...
Removing dead code.
2010-09-24 23:30:00 -04:00
mark_story
92ed1e76da
Fixing file included in all_models.
...
Adding skip as tests fail when classes already exist.
Fixing skip condition to use newer api.
2010-09-24 23:30:00 -04:00
mark_story
78c838bcdd
Fixing failing tests caused by fixture data changes.
2010-09-24 23:30:00 -04:00
mark_story
76ef390d4a
Updating CakeSchema test case to run in suites. It did not account for additional tables being in the database when it ran.
2010-09-24 23:28:48 -04:00
mark_story
f21161ef46
Merge branch '1.3' into 2.0. Had to fix a number of 1.3 -> 2.0
...
differences upon merging.
Conflicts:
app/config/core.php
cake/console/templates/skel/config/core.php
cake/libs/cache/file.php
cake/libs/cake_session.php
cake/libs/controller/components/email.php
cake/libs/i18n.php
cake/libs/view/pages/home.ctp
cake/tests/cases/libs/cache/memcache.test.php
cake/tests/cases/libs/model/model_write.test.php
2010-09-24 23:27:22 -04:00
mark_story
729a45703b
Fixing issue where table names with spaces would not be quoted by name(). Fixes #1121
2010-09-21 20:34:27 -04:00
mark_story
d113d7d612
Removing dead code from DboSource::fields()
...
Updating fields() to use implode, so complex virtual fields are better handled. Fixes #1079
2010-09-18 00:04:36 -04:00
mark_story
738d92cc3e
Fixing failing tests caused by fixture data changes.
2010-09-18 00:03:22 -04:00
mark_story
5a8648cca0
Fixing issue in DboSource::_matchRecords() where unqualified conditions would result in 1=1 conditions. Fixing incorrect test case. Fixes #930
2010-09-16 00:17:09 -04:00
mark_story
730e373afe
Merge branch '1.3' into 2.0
...
Conflicts:
cake/libs/cake_session.php
cake/libs/view/pages/home.ctp
cake/tests/cases/libs/cache/memcache.test.php
cake/tests/cases/libs/cake_session.test.php
cake/tests/cases/libs/model/datasources/dbo_source.test.php
cake/tests/fixtures/data_test_fixture.php
2010-09-12 13:35:46 -04:00
mark_story
55ecfe0292
Fixing stupid typo.
2010-09-11 15:48:48 -04:00