Mark Story
84840c7b04
Fixing issues with magic input() type detection and adding/updating tests.
2010-01-12 23:27:17 -05:00
Mark Story
d8e7aa929c
Merge branch '1.3-misc' into 1.3
2010-01-12 17:18:14 -05:00
Mark Story
8e22e8cbea
Merge branch '1.3-test-suite' into 1.3-misc
2010-01-12 09:31:07 -05:00
Mark Story
a0c3c4b803
Updating AuthComponent::startup() so that being redirected to loginAction with no Auth.redirect value in the session and a non empty loginRedirect defined, the Auth.redirect value is not overwritten. This prevents redirection to already accessible pages. Test cases updated.
...
Fixes #173
2010-01-11 23:54:06 -05:00
Mark Story
0803e2a5a6
Moving CLI code coverage generation into the CliReporter.
2010-01-11 18:04:08 -05:00
Mark Story
07b43be125
Making CLI case code coverage reports include text.
2010-01-11 18:00:45 -05:00
José Lorenzo Rodríguez
04562982b2
Fixing doc block
2010-01-11 15:34:16 -04:30
José Lorenzo Rodríguez
7e9fc9f705
Test case for date format definition using a LC_TIME locale file
2010-01-11 15:19:57 -04:30
José Lorenzo Rodríguez
50f58da60d
Continuing work on locale definition file parser
2010-01-11 15:12:24 -04:30
José Lorenzo Rodríguez
8bc4f0336e
Beginings of a parser of locale definition file
2010-01-11 15:09:42 -04:30
José Lorenzo Rodríguez
aa9258cbd1
Adding test for DboSource::group() and virtual fields
...
Closes #184
2010-01-11 12:22:59 -04:30
Phally
bbb105fc8c
Added virtual field support for GROUP BY.
2010-01-11 11:46:59 -04:30
Mark Story
4ada5b7eea
Fixing notice errors caused by incorrect datatyping in php4.
2010-01-11 09:44:51 -05:00
Mark Story
84e70c1db1
Adding linebreak for text/cli output situations.
2010-01-10 15:56:51 -05:00
Mark Story
489958ea48
CakeTextReporter now outputs code coverage.
2010-01-10 15:56:24 -05:00
Mark Story
9989327b5b
Fixing constructor of CakeCliReporter to match CakeBaseReporter.
2010-01-10 15:55:49 -05:00
Mark Story
02dbbcdfc6
Fixing CliReporter class name as well as making cli/text output the default if the reporter is unknown.
2010-01-10 15:45:41 -05:00
Mark Story
e7e1a9b15c
Further refactoring of code coverage manager.
2010-01-10 15:42:30 -05:00
Mark Story
5a88aaf909
Refactoring loops in CodeCoverageManager
2010-01-10 15:28:29 -05:00
Mark Story
645807211b
Adding clear to CodeCoverageManager.
2010-01-10 13:39:41 -05:00
Mark Story
d7164c416e
Adding code coverage toggling to CakeBaseReporter.
...
Updating CodeCoverageManager method use in CakeTestSuiteDispatcher.
2010-01-10 13:24:41 -05:00
Mark Story
da26124add
Renaming CodeCoverageManager::start() to init().
...
Adding a start(), stop(), and clear() methods to CodeCoverageManager.
Making CakeBaseReporter toggle code coverage on and off as needed.
Updating test case for CodeCoverageManager.
2010-01-10 13:23:37 -05:00
Mark Story
b83f3d37c8
Removing unused method.
2010-01-10 13:06:11 -05:00
Mark Story
3dad64c9c0
Moving buffer start in CakeHtmlReporter to fix errors when displaying menus.
...
Adding paintDocumentStart() to CakeTextReporter::paintHeader() to fix issues with test results not being text/plain.
2010-01-10 13:05:35 -05:00
Mark Story
a41678e51f
Merge branch '1.3-misc' into 1.3-test-suite
2010-01-10 12:53:00 -05:00
Mark Story
6147de7725
Fixing notice errors in test case.
2010-01-10 12:52:06 -05:00
Mark Story
836c7de7cb
Updating CodeCoverageManager test case and CodeCoverageManager
2010-01-10 12:48:40 -05:00
Mark Story
cf5c48ecc5
Making CakeBaseReporter constructor take null for charset, so its easier to type.
2010-01-10 12:48:11 -05:00
Mark Story
e304246e8f
Updating test manager test cases to reflect changes in API.
2010-01-10 12:39:21 -05:00
Mark Story
a0aca7ee62
Adding output buffering to htmlreporter fixing issues with tests that send headers like Dispatcher test.
2010-01-10 12:34:55 -05:00
Mark Story
285ff5eb3b
Merge branch '1.3-misc' into 1.3-test-suite
2010-01-10 12:28:09 -05:00
predominant
0959de6031
Adding more tests to check cache paths and stupid values.
2010-01-10 20:54:20 +11:00
predominant
3bd8bd2e0e
Adding Inflector::underscore tests
2010-01-10 20:52:49 +11:00
Mark Story
f4bda62ea3
Adding doc blocks and correcting constructor of CakeCliReporter
...
Fixing TestSuite console code coverage output.
2010-01-09 23:00:03 -05:00
Mark Story
bcd7d34023
Refactoring breadcrumb and time generation in the CLI reporter.
2010-01-09 22:51:17 -05:00
Mark Story
d79bacd1ed
Making CodeCoverageManager get its settings from the reporter. This
...
makes code coverage much less reliant on GET parameters.
2010-01-09 22:42:00 -05:00
Mark Story
03da53bb92
Correcting classname used in CodeCoverageManager
...
Moving CodeCoverageManager::report() to be inside the html document.
2010-01-09 22:35:29 -05:00
Mark Story
f52900f818
Adding time and memory use to CakeCliReporter
2010-01-09 22:04:28 -05:00
Mark Story
7b5addec3e
Making CakeCliReporter a subclass of CakeBaseReporter.
...
Removing duplicated output from reporter message.
Adjusting formatting of output to be more readable.
2010-01-09 22:02:35 -05:00
Mark Story
081509a09c
Fixing typos.
...
Removing useless constant.
Fixing constructor
2010-01-09 21:30:46 -05:00
Mark Story
a8f289349e
Letting TestManager::getExtension accept either test or case as a test case type.
2010-01-09 21:29:57 -05:00
Mark Story
6a3152c518
Update file header.
2010-01-09 21:24:27 -05:00
Mark Story
9245719711
Updating TestManager::getExtension to be an instance method only.
...
Updating doc blocks for TestManager.
Removing CliTestManager as it is no longer used/needed.
2010-01-09 21:22:41 -05:00
Mark Story
b58f03b53f
Fixing package string on CakeBaseReporter
2010-01-09 20:20:13 -05:00
Mark Story
6721c4926d
Renaming CliReporter to CakeCliReporter, so it name matches the other new refactored reporters.
2010-01-09 20:19:49 -05:00
Mark Story
8a56793368
Correcting doc blocks.
2010-01-09 19:52:52 -05:00
Mark Story
5a10e52d1f
Updating package strings for reporters
2010-01-09 19:37:37 -05:00
Mark Story
f567d9aacc
Removing unnecessary TestManager subclasses
2010-01-09 19:35:01 -05:00
Mark Story
88f58dfbe8
Fixing missing headers when in plain text reporting.
2010-01-09 19:19:09 -05:00
Mark Story
e061a53358
Removing CakeTestMenu as its been made obsolete.
...
Removing constant use from reporter.
2010-01-09 11:25:35 -05:00
Mark Story
bdc84cd5d0
Renaming paintDocumentHeader to paintDocumentStart
...
Renaming paintDocumentFooter to paintDocumentEnd
Moving features from CakeTestMenu, HtmlTestManager, and TextTestManager into the appropriate Reporters.
2010-01-09 11:20:47 -05:00
Mark Story
c529d3c6e9
Refactoring test case list output generation into Reporters.
2010-01-09 10:55:58 -05:00
Mark Story
bc2dd3c987
Removing refactored header and footer.
2010-01-09 09:29:28 -05:00
tPl0ch
61079f6317
Fixes #42 . Updated Sanitize::clean() with 'remove_html' option. Updated Sanitize::html() to accept new options. Updated test cases.
...
Signed-off-by: Mark Story <mark@mark-story.com>
2010-01-07 19:04:49 -05:00
Mark Story
a0f5d0fc02
Renaming menu template file.
...
Refactoring logic from CakeTestMenu into the Reporters.
2010-01-06 23:02:37 -05:00
Mark Story
4c0d90c502
Adding paintDocumentFooter and paintDocumentHeader to CakeBaseReporter and CakeHtmlReporter.
...
Refactoring case list and group lists to use reporter methods.
2010-01-06 22:52:04 -05:00
Mark Story
c01276a470
Moving header and menu display into CakeHtmlReporter.
...
Updating header.php with new variable.
2010-01-06 22:42:35 -05:00
tPl0ch
5ae0164574
Added Validation::uuid(). Updated test cases.
...
Signed-off-by: Mark Story <mark@mark-story.com>
2010-01-06 21:29:55 -05:00
Mark Story
65a12ed902
Adding tests for previous commit.
2010-01-06 21:26:52 -05:00
Mark Story
683be26bcb
Merge branch '1.3' of github.com:cakephp/cakephp1x into 1.3
2010-01-06 21:14:25 -05:00
predominant
e2a2770d9f
Fixing validation errors for wrong case checking on Validation::ip.
...
Adding IPv6 validation for Validation::url().
Added tests for ports in urls.
Fixed port length allowance on Validation.
2010-01-07 11:02:05 +11:00
Mark Story
be7ce6e923
Fixing issues where chained jQuery engine requests wouldn't eval() script elements, making ajax pagination much harder.
2010-01-06 11:59:15 -05:00
Mark Story
b6e22704ed
Refactoring and updating footer element to use param based basePath.
...
Moving footer inclusion to CakeHtmlReporter.
2010-01-06 09:50:39 -05:00
Mark Story
6b3e9583bf
Moving more direct GET access to params.
2010-01-06 09:46:48 -05:00
Mark Story
98cf758a98
Continuing refactoring of CakeTestMenu.
2010-01-05 23:16:12 -05:00
Mark Story
21afcef7cf
Updating CakeTestSuiteDispatcher to get base url and base dir. Refactoring xdebug and simpletest error pages. Starting to phase out CakeTestMenu.
2010-01-05 23:12:28 -05:00
Mark Story
44cacf6dad
Adding stub methods for upcoming refactoring of menu generation.
2010-01-05 22:52:25 -05:00
Mark Story
1e5923c75a
Moving templates to templates dir.
2010-01-05 22:51:39 -05:00
Mark Story
3c57dbee04
Refactoring methods from CakeTestMenu into CakeHtmlReporter.
...
Updating CakeTestSuiteDispatcher to reflect removed methods.
2010-01-05 22:20:32 -05:00
Mark Story
f228990c58
Updating doc blocks.
2010-01-05 20:56:25 -05:00
Mark Story
faafe5a0dc
Removing use of Set::filter(). Coupling the test suite to Set is not a good idea.
2010-01-05 20:52:22 -05:00
Mark Story
1d63d52d3c
Updating @link properties and spacing.
2010-01-05 20:44:15 -05:00
Mark Story
84c2bbdfe2
Making CakeTextReporter use CakeBaseReporter as its base class, moving methods from TextReporter.
2010-01-05 20:44:01 -05:00
Mark Story
0d7875f4ad
Extracting methods and features out into CakeBaseReporter.
2010-01-05 20:29:08 -05:00
Mark Story
5bd9734f96
Moving reporters to a directory and updating CakeTestSuiteDispatcher.
2010-01-05 20:10:41 -05:00
predominant
1302fba632
Fix validation of IPv6 on IPv4 checks.
...
Separate IPv4 and IPv6 validation to allow strict checking.
2010-01-06 00:53:48 +11:00
Mark Story
34ffa43119
Refactoring hardcoded extensions to use properties.
2010-01-05 00:13:03 -05:00
Mark Story
104086b928
Converting static calls to TestManager to use Manager instance in the TestSuiteDispatcher.
...
Converting static methods to instance methods.
2010-01-05 00:09:07 -05:00
Mark Story
e60d742c04
Whitespace updates.
2010-01-05 00:03:30 -05:00
Mark Story
48e1c4d08a
Removing duplicate method calls, and doing some refactoring of Reporter retrieval. Adding Manager instance var to help make subclassing more flexible in regards to TestManagers.
2010-01-04 23:58:09 -05:00
Mark Story
9a62fd52b3
Fixing occurances of CakeTestsGetReporter and fixing issues loading reporters.
2010-01-04 23:28:04 -05:00
Mark Story
dd5a886f3a
Removing CakeTestsGetReporter global function.
...
Starting to move Reporter/Manager decision making to CakeTestSuiteDispatcher, also affording the ability to use custom reporters/managers for generating test suite output.
2010-01-04 23:28:04 -05:00
Mark Story
33cb8eebfe
Renaming CakeHtmlReporter's file.
2010-01-04 23:28:03 -05:00
Mark Story
effc03ca3a
Adding CakeTestSuiteDispatcher to handle dispatching of the test suite.
2010-01-04 23:28:03 -05:00
Mark Story
183abfa4a9
Adding Docblocks to TextTestManager
2010-01-04 23:28:03 -05:00
Mark Story
8181acbb0b
Adding doc blocks to TestManager.
2010-01-04 23:28:03 -05:00
Mark Story
da19e31188
Refactoring duplicate switch logic to a single method.
2010-01-04 23:28:03 -05:00
Mark Story
a3b0805347
Fixing formatting.
2010-01-04 23:28:03 -05:00
Mark Story
397bdaf3e1
Removing global functions moved to CakeTestMenu
2010-01-04 23:28:03 -05:00
Mark Story
4d74dc6bda
Adding CakeTestMenu to clear up some global methods.
2010-01-04 23:28:02 -05:00
Mark Story
3d608d6fd7
Adding doc blocks to CakeHtmlReporter
2010-01-04 23:28:02 -05:00
Mark Story
2aee4b6e43
Adding sql dump back into test suite. Fixes #157
2010-01-04 23:25:23 -05:00
Mark Story
2ace6bb0b1
Updating Controllers used to test full page caching to reflect changes in CacheHelper's functionality.
2010-01-03 23:51:31 -05:00
Mark Story
95135d18cc
Merge branch '1.3' into 1.3-misc
2010-01-03 23:36:32 -05:00
Mark Story
32113a4c88
Merge branch '1.3' of github.com:cakephp/cakephp1x into 1.3
2010-01-03 23:35:48 -05:00
Mark Story
a726f82f18
Fixing failing test caused by changes in Configure/App api's and merged code from 1.2
2010-01-03 23:35:17 -05:00
Mark Story
3c88d81735
Adding tests for model method validation with multiple parameters and addition of original validation rule to method params. Closes #149
2010-01-01 23:34:11 -05:00
predominant
e4fa475998
Test cases for model bake updates, refs #147
2010-01-01 20:19:15 +11:00
ADmad
5f987a4996
Controller data is now set to an array instead of Xml object if request content type is 'application/xml'
2009-12-31 17:36:58 +05:30
Mark Story
41e6fdf346
Merge remote branch 'fahad/1.3-l10n' into 1.3-misc
2009-12-29 23:39:08 -05:00
Mark Story
49e9550482
Merge branch '1.3' into 1.3-misc
2009-12-29 22:07:23 -05:00
Mark Story
32683d3d64
Fixing issues in PrototypeEngineHelper where parameters would end up wrapped in a function() {} when marked as a dataExpression. This prevented the sending of form data.
...
Tests added.
Fixes #142
2009-12-29 21:52:59 -05:00
Ali Farhadi
f86a80ac9e
Fixing failing tests caused by changes in L10n class, and removal of duplicate test.
2009-12-30 00:24:05 +03:30
Mark Story
b377905741
Fixing whitespacing and formatting of doc blocks.
2009-12-28 23:00:38 -05:00
Mark Story
b68d2a32bf
Merge branch '1.3' into 1.3-misc
2009-12-28 22:15:52 -05:00
Mark Story
6749e1166b
Making cacheAction array settings use action names instead of url paths. This removes the ability to set different durations for specific passed arguments. However, makes passed args, named params, and querystring params all behave the same in regard to cacheAction. Test cases updated.
2009-12-28 21:26:51 -05:00
Mark Story
b89280a916
Fixing test failures caused by changes in Cache::__loadEngine().
...
Adding tests for Cache::config().
2009-12-28 13:52:50 -05:00
Mark Story
45a3eb250f
Starting refactoring of cachehelper to use Router::reverse to generate check/match strings. Removing dead code as well.
2009-12-28 13:38:36 -05:00
Mark Story
df8914b2e4
Router::reverse now removes models and paging keys that controllers can insert into params arrays.
2009-12-28 13:34:05 -05:00
Mark Story
5b78a662e8
Adding tests for querystring reversal.
2009-12-27 23:10:29 -05:00
Mark Story
886cd9e719
Adding Router::reverse and basic test case.
2009-12-27 23:09:26 -05:00
Mark Story
7a620b62b0
Merge branch '1.3-misc' into mergers
...
Conflicts:
cake/libs/model/datasources/dbo_source.php
cake/libs/view/helpers/js.php
2009-12-27 12:45:12 -05:00
Mark Story
6b2154d961
Merge branch '1.2' into mergers
...
Conflicts:
cake/libs/inflector.php
cake/tests/cases/libs/model/model_validation.test.php
2009-12-27 12:34:27 -05:00
predominant
19924501d1
Updating Inflector to employ internal caching.
...
Refs #23
2009-12-25 18:53:38 +11:00
Joël Perras
173b4e7b5d
Merge branch '1.3-misc' of github.com:cakephp/cakephp1x into 1.3-misc
2009-12-22 23:53:01 -05:00
Joël Perras
8eb9f9e8fd
Implenting IPv6 validation using filter_var(), with a regex-based fallback if the aforementioned function does not exist (PHP < 5.2). Fixes #38 .
2009-12-22 23:52:06 -05:00
Mark Story
e7a5143aa9
Adding tests for after = false in currency(). Refs #34
2009-12-22 19:11:52 -05:00
Mark Story
1a387e6b8a
Fixing url parameters set with options() or beforeRender not being merged on next() / prev().
...
Tests added. Fixes #129
This reverses the change made in efa36abdf0
which broke this behavior.
2009-12-22 19:05:06 -05:00
Mark Story
5274dce9f1
Making set vars with Js->set go to the top of the buffered scripts array. Tests added.
...
Updating doc blocks for JsHelper and JsBaseEngineHelper.
Fixes #131
2009-12-21 09:41:36 -05:00
Mark Story
42fa6ff04a
Fixing JsHelper::writeBuffer when inline is set to false. Scripts are now enclosed in a script tag. Fixes #130
2009-12-21 09:29:28 -05:00
ADmad
d561405daa
Renaming RequestHandler::getReferrer to RequestHandler::getReferer for (mis)spelling consistency and deprecating the former
2009-12-20 23:06:28 +05:30
ADmad
f36e5eff5f
Merge branch '1.3-misc' of github.com:cakephp/cakephp1x into 1.3-misc
2009-12-20 13:22:43 +05:30
Mark Story
55f8668016
Updating lib group with omitted classes.
2009-12-19 20:32:34 -05:00
Mark Story
3cdf22d860
Correcting tests affected by changes in Router.
2009-12-19 20:22:16 -05:00
Mark Story
79cd856e19
Updating ExtractTask test case to reflect changes made in df8895a266
. Domain strings are no longer default merged into default.pot.
2009-12-19 20:18:18 -05:00
Mark Story
e95186d5cc
Fixing failing test in ApiShell test.
2009-12-19 20:08:31 -05:00
Mark Story
3edb84d77c
Adding skip for BakeShell test, if a User class exists bake all cannot be tested.
2009-12-19 20:01:59 -05:00
Mark Story
c669f8c998
Fixing failing tests in AuthComponent because of required parameter.
2009-12-19 19:58:55 -05:00
Mark Story
22cf13b6b6
Updating DboSource test to remove protected access and use methods instead.
2009-12-19 19:54:49 -05:00
Mark Story
3f7405c8d6
Removing cakeDebug from test_app layout.
...
Adding skips for tests that can cause failures when cache dirs are not writable.
2009-12-19 19:47:20 -05:00
Mark Story
7467224455
Moving test case and adding doc block.
2009-12-19 19:41:25 -05:00
Mark Story
4ac0a55aff
Merge branch 'virtual-fields' into 1.3-misc
...
Conflicts:
cake/tests/cases/libs/controller/controller.test.php
2009-12-19 19:40:12 -05:00
ADmad
cea102c357
Updating doc block to reflect that url can be string or array and removing 'escapeTitle' param. Use key 'escape' in options instead
2009-12-20 00:46:47 +05:30
Mark Story
071c6f0e8b
Merge branch 'sql-dump' into 1.3-misc
2009-12-19 13:32:01 -05:00
Mark Story
a89fcba243
Updating DboSource::getLog() and showLog() to use a View element.
...
Updating tests to reflect changes in getLog()
2009-12-19 12:09:01 -05:00
Mark Story
3eaff3e021
Correcting FormHelper::minute() to fix issues with extracting values from array formatted data. Fixes #107
2009-12-19 11:55:35 -05:00
Mark Story
18c878b3f5
More whitespace fixes.
2009-12-18 19:18:23 -05:00
Mark Story
ab21855efd
Fixing whitespacing.
2009-12-18 19:16:10 -05:00
Mark Story
959befb6e1
Merge commit 'josezap/virtual-fields' into virtual-fields
2009-12-18 19:11:50 -05:00
Mark Story
6356c6ed87
Fixing issue where forms generated with requestAction would be missing the _Token fields that Security component creates. Test cases added to ensure that token key does not change when requestAction is used.
...
Fixes #68
2009-12-18 19:05:33 -05:00
José Lorenzo Rodríguez
98e7575c5a
Adding documentation on tests
2009-12-17 14:50:36 -04:30
José Lorenzo Rodríguez
8f29f59c1a
Enclosing virtual fields in parentheses to avoid SQL errors
...
Added new tests to improve code coverage on virtual fields
2009-12-17 14:42:46 -04:30
Mark Story
1e7e650133
Fixing issue where _restructureParams would move controller key to the plugin key causing issues switching controllers. Tests added. Fixes #115
2009-12-17 10:16:47 -05:00
Mark Story
264cdb78c0
Removing unnecessary key.
2009-12-17 10:13:05 -05:00
Mark Story
b190e462b8
Fixing whitespacing.
2009-12-17 00:15:42 -05:00
Mark Story
e8f0ea951a
Updating tests and doc blocks for JsHelper::writeBuffer() to return null if no scripts have been buffered. Fixes #108
2009-12-16 23:48:29 -05:00
Mark Story
0bc1126114
Merge branch 'component-settings' into 1.3-misc
2009-12-16 23:08:16 -05:00
Mark Story
8960a01649
Merge branch '1.3-misc' of git@github.com:cakephp/cakephp1x into 1.3-misc
2009-12-16 23:08:00 -05:00
Mark Story
9230bb93af
Merge branch '1.3' into 1.3-misc
2009-12-16 23:07:44 -05:00
Mark Story
ff74a599c6
Adding ability to set configuration from initialize() for RequestHandler.
...
Tests added.
2009-12-16 23:06:16 -05:00