Commit graph

285 commits

Author SHA1 Message Date
mark_story
44159ec303 Removed all references to Router::url in all helpers. Closes #4880. Fixed failing test in RssHelper, added more tests.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7164 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-11 02:10:32 +00:00
mark_story
8c32547351 Adding test to formHelper. Testing checkbox in response to #4869
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7146 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-09 12:34:30 +00:00
gwoo
5807def032 updating some view stuff
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7140 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-08 15:44:46 +00:00
AD7six
a978fb2661 adding Doc blocks to everything in tests folder missed in the first pass.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7126 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-05 15:20:45 +00:00
gwoo
b3f605c1d8 fixes #4836 components initialize for error pages, also changing Object::stop() to Object::_stop()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7116 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-04 19:04:58 +00:00
gwoo
298ede514c removing debug statement from form.test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7115 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-04 17:07:40 +00:00
gwoo
071af32eb2 adding test cases showing usage of showParents in form helper, closes #4831
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7113 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-04 15:57:45 +00:00
TommyO
f1921c15ef New tests added for xml-based helpers
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7109 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-03 22:33:21 +00:00
TommyO
57b6dedc49 Additional tests added for XmlHelper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7106 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-03 17:59:23 +00:00
AD7six
f44c755475 Adding doc blocks to everything in the tests dir
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7094 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-02 19:22:55 +00:00
mariano.iglesias
3cfa3132e4 Fix issue with test and precision of float numbers. Adding test to show use of quoteKey, closes #4806
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7083 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-01 21:22:59 +00:00
joelmoss
d294e91d42 Fixing PHP error with $divOptions in FormHelper::input() when passing $option['div'] = false
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7066 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-30 16:05:53 +00:00
joelmoss
03322a31d7 FormHelper::submit() now accepts alternative wrapping tags, instead of a div.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7065 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-30 15:44:39 +00:00
joelmoss
4dfe7333b7 FormHelper::error() can now be passed the tag to wrap the error message in.
FormHelper::input() can now be passed the tag to wrap the input element in; same applies to the tag that wraps the error message.
Corrected date format in Form test testMonth().


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7064 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-30 15:07:32 +00:00
nate
42da5aba81 Moving Cake folder to correct location
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7063 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-30 11:40:08 +00:00
DarkAngelBGE
e6e0d852a2 deleting cake folder from svn
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7061 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-30 10:59:16 +00:00
mark_story
ca48055ddb Added ability to specify cdata blocks and ignore special character stripping in RssHelper. Tests updated as well. Closes #4491
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7051 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-28 02:19:55 +00:00
mark_story
78e534b73b Refactored month() to take monthNames in the options array. Added options descriptions to several doc blocks. Tests updated.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7047 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-27 00:07:00 +00:00
mark_story
9da3e638df Applied Enhancement submitted by 'chjunior', month display can be set to numbers or translated text. Closes #4327. Tests also updated.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7039 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-24 04:00:26 +00:00
nate
57473a4633 Fixing XML test for case where App.encoding is empty
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7025 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 05:53:49 +00:00
the_undefined
52bae8a7bf Made form helper pick up field definitions outside the current context
Made form helper handle maxlength for float fields properly, fixes #4724


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7021 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 05:14:57 +00:00
joelmoss
17c542d76d HtmlHelper::tableCells() now accepts a fifth parameter $continueOddEven, which by default is true, thereby not affecting current behaviour. When false, $count will not be static, and will therefore start from zero, giving correct odd and even values if they are passed. Fixes #4222
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7003 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 09:13:23 +00:00
mark_story
f7438da72e Implemented patch from 'johnathansnook' closes #4496 Form::inputs now allows for fieldset classname to be set. Updated tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6991 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-21 03:57:35 +00:00
nate
092d51b4f1 Upating RssHelper test to reflect changes in XmlHelper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6982 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-20 04:55:04 +00:00
mark_story
ed56a8e637 Added ability to define end user time offset to TimeHelper closes #2656
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6975 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-20 00:24:00 +00:00
mark_story
0d9ca660b0 Implemented Enhancement: closes #4670
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6974 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 22:05:42 +00:00
mark_story
f2eab6ef59 Implemented enhancements, closes #4059 and #4584
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6972 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 21:01:02 +00:00
mariano.iglesias
5459b92f02 Ensuring that a valid maxlength value is used for inputs, fixes #4691
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6965 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 12:17:37 +00:00
the_undefined
3204ced2ed Made TextHelper::highlight utf8 compatible, fixes #4602
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6952 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 06:54:53 +00:00
the_undefined
fbbde864f7 Added $invalid parameter to format function, closes #2709
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6941 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 03:58:34 +00:00
mariano.iglesias
f900ecc1ef Removed unneeded function
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6929 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 19:56:00 +00:00
mariano.iglesias
660d5bb804 Allowing CakeTestCase::assertTags() to receive strings as expectation.
Removing default value in AjaxHelper::options() and AjaxHelper::__optionsForAjax() since it always require a parameter.
Using Object::stop() instead of exit() in AjaxHelper::afterRender().
Bringing AjaxTest coverage to 88%

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6928 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 19:51:30 +00:00
joelmoss
64e68c9b7c Text helper highlight method now handles HTML tags correctly. Closes #2242
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6912 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-17 18:45:24 +00:00
phpnut
9d9d69d194 Fixing svn props on files.
Renamed sessionHelper.ctp
Fixed test case with proper layout name

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6880 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 05:13:44 +00:00
joelmoss
09ebd9cbe6 Paginator Helper prev and next methods now use the Html::tag helper method, allowing you to pass a tag option to specify what HTML tag the disabled links should be wrapped in. Defaults to div. Fixes #3991
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6862 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 23:35:47 +00:00
joelmoss
9a4c186ccd Html::tag now accepts $attributes as a string, in which case, it will be used as the tags class name.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6859 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 23:09:37 +00:00
joelmoss
65454882f3 Created Html::tag helper which allows you to create any HTML block tag. Html::div now uses this method.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6858 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 23:04:52 +00:00
DarkAngelBGE
4621e68803 bringing the numbers helper to 100% coverage
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6850 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 18:04:09 +00:00
DarkAngelBGE
ead3ff125d adding header test to XmlHelper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6847 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 14:50:27 +00:00
DarkAngelBGE
2bdf2a7704 removing one test from xml helper that would not work in a group test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6842 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 14:20:58 +00:00
DarkAngelBGE
79e1fd6ed2 enabling php4 for xml helper tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6839 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 08:15:15 +00:00
DarkAngelBGE
88a2f0936e fixes #4559
bringing xmlhelper to 100% code coverage
fixing small bugs in XmlHelper::__parseContent

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6838 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 07:56:33 +00:00
the_undefined
93ad951a8c Fixed small bug in TextHelper::autoLinkUrls, closes #4357
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6832 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 03:53:26 +00:00
nate
81b57b7d5d Pushing TextHelper code coverage to 100%
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6816 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-12 07:05:33 +00:00
nate
b7a5a28fbb Improving code coverage for PHP-native JSON generation in JavascriptHelper, fixing object output bug
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6814 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-12 06:04:56 +00:00
mariano.iglesias
94c129cf9e Updating test in JavascriptTest so float precision is taken into account
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6808 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-11 19:42:56 +00:00
mariano.iglesias
98cf0f47f5 More code coverage for JavascriptTest
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6807 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-11 19:37:45 +00:00
mariano.iglesias
219dca11a0 Fixing issue where 'safe' option was not being considered when calling JavascriptHelper::codeBlock and then blockEnd. Increasing test code coverage for JavascriptHelper.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6806 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-11 19:14:35 +00:00
mariano.iglesias
ce01acfbdf Reverting test change from [6790]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6799 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-11 16:39:18 +00:00
mariano.iglesias
751a1b7cf7 Reverting [6795] as it changes existing behavior
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6796 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-10 18:53:15 +00:00