Joël Perras
adb0c809a0
Refactoring Model::exists() to be independent of Model::$useTable. Fixes #199 .
...
Model::exists() now makes no check whatsoever on the value of
Model::$useTable. This means that, as with a database-backed dbo,
Model::exists() will call Model::find('count') (which in turn calls
DataSource::read()) to determine if the record identified by Model::$id
already exists in the datasource.
2010-01-14 16:47:08 -05:00
José Lorenzo Rodríguez
09b466f8aa
Fixing whitespace and removig calls to Helper::output() introduced by error
2010-01-14 15:38:48 -04:30
José Lorenzo Rodríguez
0b3758dc91
Bug fix in I18n
...
Changing calls from date to strftime in TimeHelper
Implementing TimeHelper::converSpecifiers() to conver format strings to be windows safe and I18n friendly
Implementing TimeHelper::i18nFormat() to format dates with preferred locale date format
Changing TimeHelper::format() to handle inversion of first two parameters, while being backwards compatible. If called with the first parameter as a time string it will call TimeHelper::i18nFormat()
2010-01-14 14:11:57 -04:30
José Lorenzo Rodríguez
a980f72364
Refactoring I18n::translate() to return time format string or arrays when category is LC_TIME
...
Tests added
2010-01-14 09:54:45 -04:30
José Lorenzo Rodríguez
589972d581
Merge branch '1.3' into github-i18n
...
* 1.3: (137 commits)
Updating tests to reflect SessionHelper's loss of magic inclusion.
Removing SessionHelper's magical inclusion into the helpers array. Use of SessionHelper must now be explicitly done. Tests updated.
Fixing merge var test case for non magic session component.
Fixing Pagescontroller test and removal of pageTitle from controller.
Fixing component and controller test cases to work with less magical session component.
Removing the magical addition of SessionComponent to components array. This makes components more declarative, and removes magic that cannot be undone by the end developer.
Fixing failing tests due to deleted assets.
Removing use of subclass method 'fullTableName()' in Datasource superclass. Fixes #100 .
Updating CakeTestSuiteDispatcher parsing of .
Adding missing </p> to Html test reporter template.
Updating css file in skel dir.
Fixing alignment issues in tables.
Removing orphaned method.
Adding 'id' attribute to hidden field generated for multiple select and multiple checkboxes. Fixes issue where invalid markup was generated in case to multiple checkboxes
Adding php5 check to avoid errors when using __get() or __isset() methods in models
Fixing include in test of CodeCoverageManager. Fixes #196
Fixing var name when not have SimpleTest or XDebug installed.
Moving skel/config/sql to skel/config/schema
Fixing output of 'Actions' in bake templates. Now outputs a __() call.
Updating scaffolds to match new bake design.
...
2010-01-14 08:34:03 -04:30
Mark Story
1980a46b46
Updating tests to reflect SessionHelper's loss of magic inclusion.
2010-01-14 00:09:14 -05:00
Mark Story
a56bc5585c
Removing SessionHelper's magical inclusion into the helpers array. Use of SessionHelper must now be explicitly done. Tests updated.
2010-01-13 23:55:09 -05:00
Mark Story
a85da63956
Fixing merge var test case for non magic session component.
2010-01-13 23:49:11 -05:00
Mark Story
32832f4810
Fixing Pagescontroller test and removal of pageTitle from controller.
2010-01-13 23:49:11 -05:00
Mark Story
540e81b1b0
Fixing component and controller test cases to work with less magical session component.
2010-01-13 23:49:11 -05:00
Mark Story
eb2c34afa0
Merge branch '1.3' of github.com:cakephp/cakephp1x into 1.3
2010-01-13 23:47:59 -05:00
Mark Story
67b69b3106
Fixing failing tests due to deleted assets.
2010-01-13 23:47:31 -05:00
Joël Perras
88a09cfbb4
Updating CakeTestSuiteDispatcher parsing of .
...
Better handling of cases where dirname() of PHP_SELF returns only '/'.
2010-01-13 23:19:10 -05:00
Joël Perras
ff3aefe93a
Adding missing </p> to Html test reporter template.
2010-01-13 23:19:09 -05:00
ADmad
848dc518ab
Adding 'id' attribute to hidden field generated for multiple select and multiple checkboxes. Fixes issue where invalid markup was generated in case to multiple checkboxes
2010-01-14 04:13:39 +05:30
Juan Basso
d8257518de
Fixing include in test of CodeCoverageManager. Fixes #196
...
Signed-off-by: Mark Story <mark@mark-story.com>
2010-01-13 09:38:26 -05:00
Juan Basso
1c542b6ea5
Fixing var name when not have SimpleTest or XDebug installed.
...
Signed-off-by: Mark Story <mark@mark-story.com>
2010-01-13 09:35:58 -05:00
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