José Lorenzo Rodríguez
a718b1d91c
Merge pull request #89 from sitedyno/2.0-cakeplugin-tests
...
2.0 cakeplugin tests
2011-05-19 14:05:18 -07:00
Heath Nail
f9b02dde44
Update App::objects() cache after App::build().
...
Prevents console from crashing because it would try to load test plugins
(from object cache) that it didn't know how to find.
2011-05-19 16:55:01 -04:00
Heath Nail
4ccf5c0885
Clear application plugins before running the first test.
2011-05-19 16:26:49 -04:00
Heath Nail
a7ec73b523
Update the object cache.
...
Keep application plugins out of core tests, otherwise tests will fail.
2011-05-19 16:25:25 -04:00
Florian Krmer
585160300a
Fixing loading of plugin tests by adding Inflector::camelize()
2011-05-19 22:12:15 +02:00
Heath Nail
e645fa7340
Make baked plugin directories consistent with 2.0 conventions.
2011-05-19 13:06:12 -04:00
José Lorenzo Rodríguez
4d35d634c8
Merge pull request #85 from sitedyno/2.0-appshell
...
2.0 appshell
2011-05-19 08:08:57 -07:00
Heath Nail
eecd91e99f
Load AppShell class.
2011-05-18 21:05:21 -04:00
Renan Gonçalves
c602fc845b
Reverting the change to insertMulti, worked to solve the cache issue when trying to get the model schema.
2011-05-18 20:59:17 +02:00
Renan Gonçalves
37b9bd59bc
Trying to fix the Mssql as much as possible.
...
Adding parameter to the insertMulti() method because Mssql tries to get the table schema and it fails most of the time.
2011-05-18 20:12:36 +02:00
Renan Gonçalves
d1a984cde9
Resolving merge conflict.
2011-05-18 19:58:12 +02:00
Thomas Ploch
35a014045b
Moved check for CakePlugin::loaded() out of if statement in CakeTestLoader::_basePath(). Plugin will only be loaded when the plugin tests are requested.
2011-05-18 17:15:39 +02:00
Thomas Ploch
2b17988cb7
Fixed small typo in CakeTestLoader.php.
2011-05-18 16:14:36 +02:00
Mark Story
c30ba40bd5
Merge pull request #79 from tPl0ch/2.0-errorhandler-rewrite
...
Rewrite of Fix for Ticket #1707 .
2011-05-17 17:34:21 -07:00
José Lorenzo Rodríguez
b22c29cabe
Merge pull request #82 from sitedyno/2.0-pages-dir
...
2.0 pages dir
2011-05-17 16:25:34 -07:00
AD7six
245d678eda
Merge branch '2.0' of github.com:cakephp/cakephp into 2.0
...
Conflicts:
lib/Cake/TestSuite/Fixture/CakeFixtureManager.php
2011-05-18 01:01:31 +02:00
AD7six
b1d891bb49
path correction
2011-05-18 01:00:00 +02:00
Heath Nail
930ef89f8c
Pages directory should be capitalized.
2011-05-17 18:37:12 -04:00
Jose Lorenzo Rodriguez
27463da5ef
Fixing fixture loading in plugins
2011-05-17 17:11:34 -04:30
AD7six
6e29bb4d94
fix ModelIntegrationTest part 1
2011-05-17 21:48:16 +02:00
Heath Nail
dc85d21f05
Dots appear in the text searched for, added to search pattern.
...
The define statement in skel/webroot/index.php contains dots. Added \.
to the search pattern so that bake will update the core path in
webroot/index.php
2011-05-17 14:34:10 -04:00
Jose Lorenzo Rodriguez
f645db61fb
Merge branch '2.0' of github.com:cakephp/cakephp into 2.0
2011-05-17 12:45:45 -04:30
Jose Lorenzo Rodriguez
12e7347272
Fixing Scaffold tests
2011-05-17 12:44:38 -04:30
AD7six
83e7028ecd
fix multibyte test case
...
put the mb_internal_encoding call in a file which is _always_ loaded
2011-05-17 18:41:35 +02:00
Thomas Ploch
d8a614e112
Added usage of configured error handler instead of hard coded. Moved try/catch block to where its nessecary. Set Configure::write('Error.trace', false) since its useless with internals. Addition to #1707 .
2011-05-17 08:44:55 +02:00
Jose Lorenzo Rodriguez
1b14887e3a
Fixing all helpers tests after massing search and replace that broke parameter order on assertTags()
2011-05-17 00:06:22 -04:30
Jose Lorenzo Rodriguez
217e9e0330
Fixing test in I18n due to case sensitivity problems
2011-05-16 23:58:18 -04:30
Jose Lorenzo Rodriguez
ef663f7d3f
Fixing more tests after the massive search and replace
2011-05-16 23:53:30 -04:30
Jose Lorenzo Rodriguez
7ef1a2995a
Fixing failing tests due to massive search and replace
2011-05-16 23:45:35 -04:30
mark_story
cd13e37609
Adding tests for previous commit.
...
Refs #1678
2011-05-16 21:12:28 -04:00
mark_story
2bc58a5abd
Added check if Router::getRequest(false) is returning a CakeRequest or null in ExceptionRenderer::_getController(). Fixes 'call to undefined method here()' when having Exceptions raised without valid request set to the Router in testsuite (i.e. undefined database config 'test'). Fixes #1678 .
...
Conflicts:
lib/Cake/Error/ExceptionRenderer.php
2011-05-16 21:11:33 -04:00
Thomas Ploch
085c621c0e
Added try/catch block into ErrorHandler::handleException() to gracefully show Exceptions raised during exception handling. Fixes #1707
2011-05-16 20:53:38 -04:00
mark_story
6289f20b83
Fixing Router::reverse() serializing all of _Token.
...
Removing CSRF tokens from the parameters SecurityComponent exports.
Updating tests for both Router and SecurityComponent.
Fixes #1697
2011-05-16 20:35:27 -04:00
AD7six
f2e953d892
Correct bad comparision
...
I can't be sure the result is correct - but the existing expected result
is identical to the input string. Which cannot be correct
test now passes
2011-05-17 00:54:13 +02:00
AD7six
0a53242e3e
correcting all the inverted assertEqual tests
...
$expected is the first argument. Now certain test results start to make
sense:
1) MultibyteTest::testUsingMbStrtolower
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-ႠႡႢႣႤႥႦႧႨႩႪႫႬႭႮႯႰႱႲႳႴႵႶႷႸႹႺႻႼႽႾႿჀჁჂჃჄჅ
+ⴀⴁⴂⴃⴄⴅⴆⴇⴈⴉⴊⴋⴌⴍⴎⴏⴐⴑⴒⴓⴔⴕⴖⴗⴘⴙⴚⴛⴜⴝⴞⴟⴠⴡⴢⴣⴤⴥ
2011-05-17 00:49:00 +02:00
AD7six
e24ef781e5
one less scaffold fail..
2011-05-17 00:31:59 +02:00
AD7six
48ce54afec
case fixes
2011-05-17 00:25:16 +02:00
AD7six
6695994cc2
case fixes
2011-05-17 00:23:58 +02:00
AD7six
e7c8dd1616
$expected is the first arg for assertEqual
2011-05-17 00:23:09 +02:00
AD7six
1e6acec2ab
case correction
2011-05-17 00:22:19 +02:00
AD7six
6b77e73c49
$expected is the first arg for assertEqual
...
having it the wrong way round makes the error messages quite confusing
2011-05-17 00:20:59 +02:00
AD7six
e95d6a3b10
case correction, fixes ExceptionRenderer test
2011-05-17 00:08:51 +02:00
AD7six
d63b4df10c
ensure consistent order for loaded function
...
Fixes the test case
2011-05-17 00:01:20 +02:00
AD7six
20f541108e
partial fix for the scaffold test
2011-05-16 23:50:42 +02:00
AD7six
eafc8259e5
case correction
2011-05-16 23:38:28 +02:00
AD7six
40b29855a5
case corrections
2011-05-16 23:36:55 +02:00
AD7six
3fc785d823
fix case for viewPath.
2011-05-16 23:32:59 +02:00
AD7six
183b2ea9fc
correct for case fixes the ProjectTask test case
2011-05-16 23:29:59 +02:00
AD7six
245c207096
case fix for SchemaShell test
2011-05-16 23:17:29 +02:00
AD7six
fe2ec74b0e
correct paths to Config dir
2011-05-16 21:52:25 +02:00
Renan Gonçalves
f3bd0faa94
Fixing typo on the documentation. Patch by mamchenkov.
2011-05-16 21:14:46 +02:00
Graham Weldon
21f35345fa
Merge remote-tracking branch 'burzum/2.0' into 2.0
2011-05-17 01:51:42 +10:00
AD7six
7a430a921e
Merge branch 'feature/faster-tests' into 2.0
2011-05-16 16:41:12 +02:00
Thomas Ploch
785c80ba88
Added missing string concatenator to lib/Cake/Views/pages/home.ctp.
2011-05-16 08:41:25 +02:00
Jose Lorenzo Rodriguez
4ee4e426f4
Fixing more tests failing in case sensitive systems
2011-05-15 20:38:56 -04:30
Jose Lorenzo Rodriguez
ceb671db42
Fixing viewPath in Dispatcher test case
2011-05-15 20:09:38 -04:30
Jose Lorenzo Rodriguez
11f9a2756a
Moving more folders missed in previous commits
2011-05-15 20:01:45 -04:30
Florian Krmer
93a8209b43
Fixing a syntax error in lib/Cake/View/Pages/home.ctp
2011-05-16 00:18:21 +02:00
Florian Krmer
8aa3159037
Fixing Fatal error: Class 'CakePlugin' not found in \lib\Cake\I18n\I18n.php on line 267
2011-05-15 23:53:55 +02:00
AD7six
805cc944da
correct for case sensitivity
2011-05-15 19:41:34 +02:00
AD7six
a199e72610
the correct argument for plugins is infact "plugins"
2011-05-15 19:28:17 +02:00
AD7six
56c6e35437
adding an upgrade option to correct constants
2011-05-15 19:10:53 +02:00
AD7six
3175de7b3d
remove another oversight
2011-05-15 18:53:53 +02:00
AD7six
8e27cf992f
correct a few missing constant replacements
2011-05-15 18:49:38 +02:00
AD7six
ef684c3d94
a couple of find/replace oversights
2011-05-15 18:40:48 +02:00
AD7six
42c5c6e7fe
when using App::path but expecting 1 result - use the first
2011-05-15 18:39:38 +02:00
AD7six
8f071e297c
remove CAKE_TESTS constant
2011-05-15 18:37:45 +02:00
AD7six
0cb70ae3bb
remove CONFIGS constant
2011-05-15 18:34:52 +02:00
AD7six
9e0e19c5ac
correct greedy replace
2011-05-15 18:30:48 +02:00
AD7six
afa8f6b441
remove LIBS constant
...
libs always means the Cake lib - so use the CAKE constant
2011-05-15 18:29:52 +02:00
AD7six
ff2d9e244a
remove LIB_TESTS constant
2011-05-15 17:36:39 +02:00
AD7six
e3244432d5
remove MODEL_TESTS
2011-05-15 17:36:39 +02:00
AD7six
90a6bcb9d5
remove HELPER_TESTS constant
2011-05-15 17:36:39 +02:00
AD7six
19da0f9101
remove COMPONENT_TESTS constant
2011-05-15 17:36:39 +02:00
AD7six
6be91010ca
remove CONTROLLER_TESTS constant
2011-05-15 17:36:39 +02:00
AD7six
0508055ee9
remove CAKE_TEST_LIB constant
2011-05-15 17:36:39 +02:00
AD7six
998cba0759
remove CONSOLE_LIBS constnat
2011-05-15 17:36:39 +02:00
AD7six
08316c5292
remove ELEMENTS constant
2011-05-15 17:36:39 +02:00
AD7six
c33fc1e003
remove LAYOUTS constant
2011-05-15 17:36:15 +02:00
AD7six
e63f0aa28f
remove HELPERS constant
2011-05-15 17:35:01 +02:00
AD7six
e313448998
remove VIEWS constant
2011-05-15 17:35:01 +02:00
AD7six
66ae239629
remove BEHAVIORS contant
2011-05-15 17:35:01 +02:00
AD7six
62d66bc3ad
remove MODELS constant
2011-05-15 17:35:00 +02:00
AD7six
af505df885
remove COMPONENTS constant
2011-05-15 17:35:00 +02:00
AD7six
80e68763a3
remove CONTROLLERS constant
2011-05-15 17:35:00 +02:00
AD7six
95da598d99
also check for "binary"
2011-05-15 11:29:12 +02:00
AD7six
13488fe373
using memory db tables makes tests which use a db a lot faster.
...
a *lot* faster
2011-05-15 11:29:12 +02:00
AD7six
bd0a303c09
Merge branch '2.0' of github.com:cakephp/cakephp into 2.0
2011-05-15 11:28:47 +02:00
Jose Lorenzo Rodriguez
29298d746e
Fixing App tests
2011-05-15 00:56:33 -04:30
Jose Lorenzo Rodriguez
a6fb16beef
Moving tests cases to their new location
2011-05-15 00:42:10 -04:30
Jose Lorenzo Rodriguez
91bce16e9d
Merge remote-tracking branch 'origin/2.0' into 2.0-merge
...
Conflicts:
lib/Cake/Test/Case/Console/Command/Task/TemplateTaskTest.php
lib/Cake/Test/Case/Controller/Component/Auth/FormAuthenticate.php
lib/Cake/Test/Case/Log/Engine/FileLog.php
lib/Cake/Test/test_app/Plugin/TestPlugin/View/Helper/plugged_helper.php
lib/Cake/Test/test_app/Plugin/TestPlugin/View/Helper/test_plugin_app.php
lib/Cake/tests/Case/Controller/Component/Auth/FormAuthenticate.php
lib/Cake/tests/Case/Controller/Component/Auth/FormAuthenticateTest.php
lib/Cake/tests/Case/Log/Engine/FileLog.php
lib/Cake/tests/Case/Log/Engine/FileLogTest.php
lib/Cake/tests/test_app/plugins/test_plugin/View/Helper/PluggedHelper.php
lib/Cake/tests/test_app/plugins/test_plugin/View/Helper/TestPluginAppHelper.php
lib/Cake/tests/test_app/plugins/test_plugin/View/Helper/plugged_helper.php
lib/Cake/tests/test_app/plugins/test_plugin/View/Helper/test_plugin_app.php
2011-05-15 00:40:54 -04:30
Jose Lorenzo Rodriguez
082a5e1607
Fixing ControllerTestCase test
2011-05-15 00:26:23 -04:30
Jose Lorenzo Rodriguez
cee46f5ee3
Fixing debug tests
2011-05-15 00:22:39 -04:30
Jose Lorenzo Rodriguez
5e635c74e2
Fixing components tests
2011-05-15 00:16:42 -04:30
Jose Lorenzo Rodriguez
e09f825f8b
Fixing controller tests
2011-05-15 00:14:41 -04:30
Jose Lorenzo Rodriguez
6713bb154e
Making themes also CamelCased
2011-05-15 00:09:32 -04:30
Jose Lorenzo Rodriguez
1930452da0
Fixing Folder test case after recent updates in folder casing
2011-05-14 23:43:11 -04:30
Jose Lorenzo Rodriguez
5f56642e0e
Updating tests and classes in Console package after most recent updates in folder casing
2011-05-14 23:40:09 -04:30
AD7six
a206e42fb4
make it at least run
2011-05-14 19:17:14 +02:00
AD7six
5e9323a71f
make the mssql test at least runnable
2011-05-14 18:20:27 +02:00