Commit Graph

914 Commits

Author SHA1 Message Date
Carsten Brandt
bbcee326be adjusted I18N to be consistent with intl message formatting 2013-10-16 15:59:39 +02:00
Carsten Brandt
2eb5abbfcb improved unit tests for ICU message formatter 2013-10-16 05:54:10 +02:00
Carsten Brandt
fa9a975dbb intl message parser now handles too many or too less args 2013-10-16 04:41:03 +02:00
Carsten Brandt
28d9ee7c31 adjusted cubrid version in schema quote 2013-10-15 05:47:55 +02:00
Carsten Brandt
c1b6521d31 simplified cubrid db install on travis 2013-10-15 05:12:50 +02:00
Carsten Brandt
a1e5fa356e fixed cubrid schema test for pdo type 2013-10-15 04:53:33 +02:00
Carsten Brandt
f974e1a59f fixed validator test break 2013-10-15 04:43:52 +02:00
Carsten Brandt
598d01287b added cubrid specific pdo type casting
cubrid pdo does not support PARAM_BOOL so we cast the value to integer
and store 0 and 1 instead

fixes #964
2013-10-15 03:37:46 +02:00
Alexander Makarov
32865c7ddc Updated FileValidator tests 2013-10-15 01:48:05 +04:00
Alexander Makarov
8c1c3c59d9 Better AR connection init in tests 2013-10-15 01:39:19 +04:00
Alexander Makarov
5cf9992251 Removed @codeCoverageIgnore 2013-10-15 01:32:23 +04:00
Alexander Makarov
d75ad87e06 Merge branch 'add-tests' of github.com:suralc/yii2 into suralc-add-tests
Conflicts:
	framework/yii/validators/RegularExpressionValidator.php
2013-10-15 01:31:59 +04:00
Qiang Xue
8899aaeb5b moved getPdoType() to Schema. 2013-10-14 08:28:56 -04:00
Carsten Brandt
a922c41ee6 more asset bundle tests and docs 2013-10-11 02:14:59 +02:00
Carsten Brandt
abc1e0c2bb fix issue #700
adjust depended asset position or throw exception on conflict
2013-10-11 01:54:05 +02:00
Carsten Brandt
0c113faf62 added unit test for asset bundles 2013-10-11 01:13:32 +02:00
Qiang Xue
8bff031fc2 Fixed the issue that dots in URL rules would match any character. 2013-10-10 11:23:20 -04:00
Qiang Xue
fceb2d6e21 Fixes #957: Json::encode() doesn't handle empty object correctly. 2013-10-09 20:33:06 -04:00
Carsten Brandt
d442f05631 elasticsearch find by simple condition 2013-10-07 17:57:39 +02:00
Carsten Brandt
3f88320595 second try to fix random memcache failure on travis
issue #877
2013-10-02 12:27:04 +02:00
Qiang Xue
0035f23781 refactored data providers. 2013-10-01 21:35:35 -04:00
Carsten Brandt
955bf7daaf basic CRUD for elastic search WIP 2013-09-30 18:47:31 +02:00
Carsten Brandt
179618c6e9 fixed empty result in findByPk list 2013-09-30 15:39:04 +02:00
Carsten Brandt
a94886fafd elasticsearch AR WIP copied parts from redis implementation 2013-09-30 15:12:20 +02:00
Jin Hu
5d7c37bd7e Incorrect array representation when has previous 2013-09-29 23:27:14 +08:00
Alexander Makarov
b45b16d845 Renamed test to match class name 2013-09-29 05:05:57 +04:00
Alexander Makarov
dafbeda301 More i18n tests, docs, added check to skip fixes where possible 2013-09-28 22:30:16 +04:00
Alexander Makarov
bf722c0423 Used intl ICU for message translation 2013-09-28 16:30:29 +04:00
Jin Hu
d9b256d734 Fixed pagination not working before data loaded 2013-09-26 20:29:59 +08:00
Carsten Brandt
f3504f426d fix test fail when not on travis 2013-09-25 13:00:13 +02:00
Carsten Brandt
9542fd24d4 try to fix: memcache testExpire fails randomly on travis
issue #877
2013-09-25 12:58:27 +02:00
Carsten Brandt
b42f4b4ea0 fixed broken test 2013-09-25 12:45:07 +02:00
Carsten Brandt
1eb877ad82 Merge branch 'master' into redis
* master: (30 commits)
  Added SerialColumn to crud generated code.
  Added ActionColumn. crud generator WIP.
  Fixes #823: consistent interface naming
  Advanced application template: Delete flash message after it was displayed
  Fixes #901: Added $delete parameter to Session::getFlash().
  Polished up the basic discussion of template alternatives
  Advanced application template: removed unused scenario from User model
  porting the fix from https://github.com/yiisoft/yii/pull/2894
  Edited introduction
  Fixes #898: supported different signature of MemCache::addServer().
  Fixes #897.
  Use str_replace() rather than implode-explode
  Fix parenthesis typo in CRUD index template
  Doing more editing...
  test break fix.
  Support ajax redirection.
  Enable CSRF validation by default.
  Supports more elements to use data-confirm and data-method attributes.
  refactored Request::validateCsrfToken().
  Fixed CSRF validation bug.
  ...
2013-09-25 12:34:25 +02:00
Carsten Brandt
3e75c11721 cleanup and reorder methods in redis ar + added link+unlink 2013-09-24 20:16:39 +02:00
Carsten Brandt
d2c7ef76b3 more tests 2013-09-24 19:32:41 +02:00
Carsten Brandt
142ea1f98f relation support and unit tests 2013-09-24 19:10:49 +02:00
Carsten Brandt
7850c8d238 made indexBy callable like db AR 2013-09-24 19:09:59 +02:00
Carsten Brandt
3623fc19dc refactored redis AR pk and findByPk 2013-09-24 19:04:38 +02:00
Carsten Brandt
130b63461c redis WIP
- relation support
- completed and refactored lua script builder
2013-09-24 15:27:54 +02:00
Carsten Brandt
e62e84873c more API methods for redis active query: sum, avg, max, min ... 2013-09-22 16:29:56 +02:00
Carsten Brandt
7817815dd1 added more complex queries via Lua script EVAL to redis
- http://redis.io/commands/eval
- http://www.lua.org/
2013-09-22 15:43:35 +02:00
Qiang Xue
463ff43b4f test break fix. 2013-09-20 16:39:22 -04:00
Carsten Brandt
df6176edb6 added unit test for Model::load() 2013-09-18 23:43:46 +02:00
Carsten Brandt
128ee07b78 100% test coverage for CacheSession 2013-09-18 22:54:11 +02:00
Carsten Brandt
bd2404f1c6 added simple unit test for CacheSession 2013-09-18 22:46:43 +02:00
Carsten Brandt
72889128fc fixed offset and limit in redis AR 2013-09-18 17:49:56 +02:00
Carsten Brandt
563171eba4 moved redis out of yii\db namespace 2013-09-18 17:09:40 +02:00
Carsten Brandt
d8d6d1e368 Merge branch 'master' into redis
* master: (156 commits)
  added property docs to AR test classes
  moved getPDOType() back to Command to avoid dependency on Schema
  updated @property annotations of web\Request
  moved redis out of yii\db namespace
  Fixes #884.
  Supports sending CSRF token via HTTP header.
  Use .prop() instead .attr().
  use meta tags to pass CSRF token.
  Added memcached service in Travis YAML
  fixed typo
  cleanup db `use` statements
  doc fix.
  Better strtr arguments format
  Modified js registration position.
  renamed Request::csrfTokenName to csrfVar. added version, csrfVar and csrfToken to yii js module.
  Advanced application enhancements.
  Basic application enhancements.
  Better phpdoc for AccessControl
  Security::generateRandomKey enhancements:
  Fixes #875: Security::generateRandomKey() can now be safely used in URLs
  ...

Conflicts:
	.travis.yml
	framework/yii/caching/RedisCache.php
	tests/unit/framework/caching/RedisCacheTest.php
2013-09-18 16:37:56 +02:00
Carsten Brandt
3a347c3587 added property docs to AR test classes 2013-09-18 16:30:00 +02:00
Carsten Brandt
ef13a11f66 moved getPDOType() back to Command to avoid dependency on Schema
fixes #854
2013-09-18 16:29:16 +02:00