Commit Graph

1727 Commits

Author SHA1 Message Date
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
Carsten Brandt
0a5b1a935e simplified memcache installation on travis 2013-09-14 12:57:45 +02:00
Carsten Brandt
a1af321d38 fixed typo in apc install script 2013-09-14 12:56:10 +02:00
Carsten Brandt
34ebe65cf5 added apc,redis and memcache(d) to travis 2013-09-14 12:50:16 +02:00
Carsten Brandt
949dda5fdb tagged tests with @group tags 2013-09-14 12:49:47 +02:00
Carsten Brandt
41bd9ab7a8 added memcache and apc to travis 2013-09-14 12:23:06 +02:00
Carsten Brandt
f6f2522ad6 added travis README from yii 1.1 2013-09-14 12:12:20 +02:00
Carsten Brandt
69a38d1895 added cubrid_pdo to travis 2013-09-14 12:07:04 +02:00
Carsten Brandt
eb5bf2dabe added cubrid dbms to travis-ci
copied from
056e734ce3/.travis.yml
2013-09-14 11:33:07 +02:00
Carsten Brandt
d3740932a4 fixed broken cubrid tests
fixed expected quoting
2013-09-14 11:12:48 +02:00
Qiang Xue
6c6cb3cd90 Fixes #853: Added composite FK support for SQLite. 2013-09-13 20:41:40 -04:00
Qiang Xue
02fd82c42a Fixed build break. 2013-09-13 20:19:50 -04:00
Qiang Xue
6fe152da7e Reverted 0bf2dad: it's very common to use lower case for column types and upper case for other DB keywords. 2013-09-13 20:13:46 -04:00
Qiang Xue
91b6e2945a Removed the support for calling anonymous function returned as a property value. 2013-09-12 20:10:06 -04:00
Carsten Brandt
164c70eebc Add support for composite FK to cubrid 2013-09-06 15:32:33 +02:00
Carsten Brandt
8abeed03bd added SchemaTest 2013-09-06 15:03:57 +02:00
Carsten Brandt
544e412af8 unit test cleanup 2013-09-06 15:03:25 +02:00
Carsten Brandt
e996f3dfd5 Workaround for broken PDO::quote() in CUBRID 9.1.0
http://jira.cubrid.org/browse/APIS-658
2013-09-06 13:53:33 +02:00
Carsten Brandt
58f8293b84 custom bindValue test for cubrid 2013-09-06 13:24:36 +02:00
Carsten Brandt
791f9d3f4e better use int for boolean representation
bit has special syntax for storing and retreiving so we'd need a
converter for that.
Storing 1 bit will result in one byte left padded on the disc so the
result of a query for boolean 0 will be 0x00 and for boolean 1 will be
0x80.
2013-09-06 13:21:35 +02:00
Carsten Brandt
d6ff097cbb avoid hanging test on bindValue problems (close db connection in tearDown) 2013-09-06 10:28:10 +02:00
Carsten Brandt
825258efb8 cubrid unit tests WIP 2013-09-05 18:23:25 +02:00
Carsten Brandt
15a3ec2764 added unit tests and call to $behavior->hasMethod in Component 2013-08-31 23:27:52 +02:00
Carsten Brandt
b5a6dac3ae renamed test method after implementation rename in FileHelper 2013-08-30 17:03:09 +02:00
Carsten Brandt
0d91021f02 Merge branch 'master' of github.com:yiisoft/yii2
* 'master' of github.com:yiisoft/yii2:
  Fixes #829: loginRequired now responds with HTTP 403 in case of AJAX or loginUrl is not set (reverted from commit c2c12a9049)
  add missing return to module template
  Update module.php
  Fixes #829: loginRequired now responds with HTTP 403 in case of AJAX or loginUrl is not set
  gii form width adjustment.
  Make sure query cloning works as expected.
  Fixed test break.
  Fixes #828: refactored QueryBuilder::build()
2013-08-30 16:54:32 +02:00
Carsten Brandt
4b7f5a728a improved control over and handling of file and dir permissions
- rename FileHelper::mkdir for API consistency
- changed default permission for directories to 775 instead of 777
- added some properties to classes that deal with files to allow control
  over directory permissions.
2013-08-30 16:52:33 +02:00
Qiang Xue
30d6229943 Fixed test break. 2013-08-29 16:53:15 -04:00
Qiang Xue
6dba4da3ed Fixes #828: refactored QueryBuilder::build() 2013-08-29 16:47:48 -04:00
Carsten Brandt
3b91801a35 cherry picked RedisCache and redis\Connection from redis WIP branch
commit in redis branch was:
0cd65e7496
2013-08-27 17:29:38 +02:00
Carsten Brandt
0e2ac86566 added Cache::exists() to check key existance in cache 2013-08-27 17:24:09 +02:00
Carsten Brandt
0cd65e7496 commented failing tests 2013-08-27 16:11:17 +02:00
Carsten Brandt
e3df19d984 Redis AR WIP
- introduced RecordSchema class for schema definition
2013-08-26 19:29:55 +02:00
Carsten Brandt
82dc3b124c Merge branch 'master' into redis
* master: (131 commits)
  css fix.
  Finished model generator.
  more tests for FileHelper
  Added note about theme asset bundle to bootstrap widgets guide
  fixed typos in ArrayHelperBase phpdoc
  More tests for ArrayHelper and Inflector
  Fixed typo and code style
  Fixes #21: implemented jQueryUI Slider
  Fixes #790: added visible for Nav and Dropdown
  finished rule generation for model generator.
  bug fix of form generator.
  minor fixes of debugger.
  Added SafeValidator.
  fix dataProvider getSort()
  cleanup MemCache timeout API after #804
  Added failureCallback, reduced timeouts to 1s
  Mentioning that timeoutms is available in memcache only.
  set default format for gridview to text
  Removed extra line
  Added timeoutms parameter in MemCache
  ...

Conflicts:
	tests/unit/data/config.php
2013-08-26 18:10:06 +02:00
Alexander Makarov
b968402ebd more tests for FileHelper 2013-08-26 03:39:11 +04:00
Alexander Makarov
cc5618c034 More tests for ArrayHelper and Inflector 2013-08-26 03:21:19 +04:00
Suralc
06682d0ba9 coverage improvements 2013-08-24 00:31:01 +02:00
Suralc
c189e5ad3f UniqueValidator test. 2013-08-24 00:05:27 +02:00
Suralc
24e2f88503 Renamed validator test models to be less specific. 2013-08-23 22:47:45 +02:00