mark_story
a629da67b7
Adding tests to requestAction() for POST/$this->data passing in requestAction(). Closes #5628
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7767 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-21 02:04:42 +00:00
mark_story
2350000be0
Adding tests for formHelper::select() to test secured fields generation. Refs #5588
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7765 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-20 03:01:01 +00:00
mark_story
5f0fd5241e
Fixing String::insert() to allow '.' in parameters, added tests to show usage of String::cleanInsert(). Closes #5627
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7764 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-18 23:56:41 +00:00
mark_story
66cfeee8c7
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7761 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-18 01:23:33 +00:00
mark_story
f875c0098b
Updating test_suite header to improve readability of connection names.
...
Adding test for using CakeTestCase::testAction() with fixturize parameter.
Updating TestsAppPostsController and adding Post Model to test suite.
Refs #5620
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7760 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-17 16:39:39 +00:00
renan.saddam
24949e30e0
Added tests to PagesController and removed twice call to count().
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7756 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-16 23:52:54 +00:00
phpnut
4311ba8000
Close #5534 , Rename pages_controller.php to pages_controller.test.php
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7755 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-16 06:51:10 +00:00
phpnut
760f79f4ec
Closes #1855 , Separate translation files per plugin. This is now supported using !__d() and !__dn().
...
Example singular usage: !__d('plugin_name', $string, true); returns translated singular string from pluginsPath/plugin_name/locale/"language"/LC_MESSAGE/plugin_name.(po/mo).
Example plural usage: sprintf(!__dn('plugin_name', '%d = 1', '%d = 0 or > 1', $number, true), $number ); returns translated plural strings from pluginsPath/plugin_name/locale/"language"/LC_MESSAGE/plugin_name.(po/mo).
Closes #5007 , Support for multiple additional locale paths. Configure::write('localePaths', $paths); accepts an array of $paths. $localePaths = array(); can also be used in bootstrap.php
Added Configure::$shellPaths; additional paths can be set in bootstrap.php $shellPaths = array();
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7754 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-16 05:16:00 +00:00
renan.saddam
6a33ca5b5b
Adding tests to __* functions and doing a little refactoring to reduce overload.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7753 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-16 01:11:09 +00:00
phpnut
f281f8814a
Adding changes to tests to correct expected results when using hasAndBelongsToMany associations
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7752 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-16 00:38:38 +00:00
nate
a239ccc74a
Adding correct skip test method for Oracle DB test, cleaning up code formatting, fixes #4671
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7751 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-15 23:07:19 +00:00
mark_story
342f701e70
Updating CakeTestCase test to fix issue with broken tests if app/models/post.php exists.
...
Reverting and correcting earlier change on cake_test_fixture, where models and relations that are imported connected to the wrong connection.
Closes #5578
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7750 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-15 19:14:11 +00:00
phpnut
f51ae718e6
Closes #5607 , Configure::store can no longer be uses statically.
...
Corrected test cases to call Configure statically.
Added fixes for tests added in [7741]
Closes #5594 , Related models should be built when $useTable = false;
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7748 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-15 17:30:08 +00:00
mark_story
cdc12d9eb8
Changing cake_test_fixture::init() to not alter ClassRegistry::config() settings. Instead model is built with ds parameter. Closes #5578 .
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7746 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-15 16:50:10 +00:00
nate
19975a2cf6
Fixing issue where startup() / shutdown() etc. were being called on components not directly attached to the controller. Only initialize() should be called on sub-components.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7745 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-15 13:07:46 +00:00
nate
6a06194292
Fixing locking for file-based cache, fixes #5541
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7744 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-15 12:42:03 +00:00
nate
1b9357f5e8
Correcting behavior of layering allow/deny calls in AuthComponent, fixes #5595 , formatting fixes for RequestHandler
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7743 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-15 02:52:19 +00:00
renan.saddam
ccb83c341e
Added test to cover Cache::write with optional duration time. Refs #5601 .
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7742 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-15 00:55:20 +00:00
renan.saddam
bbd6089aec
Added tests to prove non-initializing associated models when useTable is equal to false. Refs #5594 .
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7741 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-14 23:28:22 +00:00
phpnut
4c2a3ee02f
Closes #5591 .
...
Modified models in models.php setting the with key since these models are not used unless the with key is defined in the association.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7740 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-13 01:17:34 +00:00
mark_story
439116fd03
Adding test to paginator test. Disproves #5582
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7730 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-10 20:20:44 +00:00
mark_story
f94bc3e4bc
Adding Test case for Shell
...
Adding Comment Model to test_app
Fixing Plugin model loading in Shells, fixes #5566
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7726 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-10 02:14:57 +00:00
renan.saddam
67abae6307
Adding remaining tests to I18n (rule 11-14).
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7724 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-10 00:39:01 +00:00
gwoo
62d1f367db
adding test cases to show #5553 is invalid, $uses is not merged when == null.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7718 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-09 17:03:44 +00:00
mark_story
136f9c4b6d
Removing getAco(), getAro(), setAco(), and getAco() from AclComponent. These methods were deprecated and not removed. Refs #5561
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7716 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-09 03:35:17 +00:00
mark_story
17e2b4c054
Applying patch from 'Pixelation' fixes cross platform issues in cookie test. Closes #5559
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7715 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-09 02:35:33 +00:00
mark_story
5c962accc1
Fixing timehelper::fromString when input time is invalid.
...
Tests added and renamed for better consistentancy with other tests.
Closes #5556
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7713 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-08 17:19:07 +00:00
renan.saddam
e184838451
Adding tests to L10n and refactoring to be more readable.
...
Removing duplicated entry of es-mx. Fixes #5087 .
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7712 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-08 14:01:50 +00:00
mark_story
acce4fa54e
Adding interval to minute() attributes when timeformat = 24.
...
Tests added.
Closes #5428 , refs #4641
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7711 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-07 16:57:22 +00:00
mark_story
11a29679e4
Fixing issue in CakeTestFixture, where $import'ing models required connection to be specified, default connection should be automatic.
...
Caused by changes in ClassRegistry::init().
Closes #5519
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7710 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-07 03:58:04 +00:00
mark_story
06955ad42f
Removing stray comment from last commit.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7708 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-06 23:58:35 +00:00
mark_story
5ca239870d
Adding tests to disprove #5540 . Closes #5540
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7707 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-06 23:57:27 +00:00
the_undefined
38bc438fc7
Applying patch by rnowotniak, fixes #5523
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7706 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-06 10:43:57 +00:00
mark_story
a5feed0284
Updating method names and doc blocks in model.test. Closes #5516
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7704 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-05 22:26:40 +00:00
AD7six
3ddc5e6be2
adding failing testcase for identical <cake:nocache> content confussion.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7703 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-05 18:27:02 +00:00
phpnut
385ebbce1f
Closes #5509 Executable flag set on sequencial_nocache.ctp
...
Closes #3817 Some non-executable files in source tree have executable permissions
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7702 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-05 00:19:25 +00:00
nate
34c5f74300
Changing handling of numeric node values in Xml class, fixes #5520
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7700 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-04 19:50:38 +00:00
mark_story
9c734f32a2
Adding test to disprove #5521
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7699 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-04 18:01:48 +00:00
mark_story
08866a90ca
Updating tests in cake_test_case test, so they run in group test.
...
Fixing issue in cakeTestCase when running tests with fixtures. Fixture tables were not being created if $test DB config and $default DB were using the same database. Closes #5519
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7698 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-04 16:35:53 +00:00
nate
b29f805632
Allowing $attributes param of FormHelper::select() to be null, fixes #5518
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7697 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-03 21:55:41 +00:00
nate
300dbc5e91
Correcting how parameters and default values are merged in Controller::paginate(), fixes #5503
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7688 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-02 00:46:26 +00:00
mark_story
915a1e119d
Adding test to Auth.test to cover logged in user being denied on an action when there is no HTTP_REFERER set. Refs #5507 .
...
Fixed tests that break when Routing.admin is not set.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7687 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-02 00:18:47 +00:00
nate
62184023d5
Allowing custom salt values in Security::hash(), thanks Jippi
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7686 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-02 00:03:52 +00:00
TommyO
3da0451907
Added basic mb_encode_mimeheader() to Multibyte class.
...
Modified EmailComponent to take advantage of multibyte support. fixes #5448
Modified EmailComponent to fix newline issues in long subject lines when using mail send method. fixes #5049
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7685 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-01 18:36:38 +00:00
nate
2bfd5a4b3e
Refactoring schema test and fixing formatting, refactoring Model::_findCount() to use DboSource::calculate() in all cases, closes #4501
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7684 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-01 15:27:29 +00:00
mark_story
1a0299d257
Adding tests to basics.test.php
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7683 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-01 00:09:00 +00:00
nate
8758f36915
Correcting table index formatting for schema generation in DboPostgres, fixes #5471 , docblock formatting fixes in ClassRegistry.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7682 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-30 18:59:17 +00:00
nate
4b8acf4647
Adding 'type' key to both sets of query calls in Controller::paginate(), fixes #5441
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7680 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-29 21:19:37 +00:00
AD7six
2cb2ca554c
Correcting env('HTTP_BASE') ensuring that when used with no subdomain ( http://example.com ) it does not return '.com' as the HTTP_BASE
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7679 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-29 18:01:52 +00:00
nate
badfb42c6a
Fixing issue with file upload inputs not being factored into form security hash, closes #5489
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7678 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-29 16:23:39 +00:00