3b665fe3c4
improved unit test SKIP detection
...
issue #4687
2014-08-12 12:10:19 +02:00
a2e8083beb
Created ArrayCache class
...
- can be used to enable caching in a request without the need for any storage
- useful for example in complex console tasks that should still be independed
2014-08-11 23:49:55 +02:00
fe2611186e
Fixes #4051 : Renamed yii\caching\GroupDependency
to TagDependency
and added support for associating multiple tags to a single cached data item
2014-07-15 00:10:57 -04:00
5439ab7854
Changed the default value of Cache::keyPrefix
to be null.
2014-05-19 11:29:34 -04:00
905e39ede9
RBAC migration is now aware of custom table names, speeded up RBAC tests
2014-05-07 00:19:33 +04:00
ab799d8ea9
Fixes #2911 : Removed tbl_
default for table prefix
2014-03-30 19:33:46 +04:00
b5f8a4dc22
Reformat code te be PSR-2 compatible
2014-03-16 10:46:21 +06:00
c7e8d8b900
@param, @var, @property and @return must declare types as boolean, integer, string, array or null
2014-03-03 20:50:44 +03:00
8ac2b7364d
moved redis to extensions
2013-11-25 02:27:04 +01:00
09a3300b7c
refactored redis cache, added mset()
2013-11-17 21:09:13 +01:00
1a7a15a3ef
Implemented mset, madd for cache. Added tests.
2013-11-17 04:00:43 +04:00
5fc51f1ad9
Merge pull request #1094 from pmoust/cache-mset
...
[WIP] Caching: mset() method to store multiple items.
2013-11-16 14:24:17 -08:00
15a9b04fcc
simplified travis env check for memcache(d)
2013-10-29 13:54:55 +01:00
f5c25e0858
travis memcache env check: try again
2013-10-29 13:49:00 +01:00
a75c07be22
print travis ENV
2013-10-29 13:35:15 +01:00
0e3d48f288
skip expiry test for memcache on travis
...
fixes #877
2013-10-29 13:10:51 +01:00
3ebbab0284
marked mset() test incomplete
2013-10-29 00:49:31 +02:00
4cf05205d4
added cache mset() base test
2013-10-29 00:18:22 +02:00
51211898f8
Control statements based on the if and elseif constructs must have a single space before the opening parenthesis of the conditional and a single space after the closing parenthesis.
2013-10-28 23:51:48 +03:00
ee2af2661c
Removed unneeded use statements
2013-10-24 03:12:25 +04:00
1f6a823073
Short array syntax
2013-10-18 20:52:38 +04:00
3f88320595
second try to fix random memcache failure on travis
...
issue #877
2013-10-02 12:27:04 +02:00
f3504f426d
fix test fail when not on travis
2013-09-25 13:00:13 +02:00
9542fd24d4
try to fix: memcache testExpire fails randomly on travis
...
issue #877
2013-09-25 12:58:27 +02:00
949dda5fdb
tagged tests with @group tags
2013-09-14 12:49:47 +02:00
3b91801a35
cherry picked RedisCache and redis\Connection from redis WIP branch
...
commit in redis branch was:
0cd65e7496befb3c4aed86e47257103fea63d329
2013-08-27 17:29:38 +02:00
0e2ac86566
added Cache::exists() to check key existance in cache
2013-08-27 17:24:09 +02:00
0596fa82fd
code style fixes
2013-08-13 02:43:47 +04:00
f5d0bcbcfc
Refactored cache key generation.
2013-05-26 17:09:09 -04:00
7cd9123c3b
Tests cleanup
...
- Better names
- Removed not used MySQLTestCase
- Moved base testcase for DB to db namespace
- Minor style fixes
2013-05-24 18:35:00 +04:00
a021fbe54d
Skipped ApcCacheTest expire
2013-05-12 18:24:01 +04:00
48f388442f
mocking time in test only usefull when using time() once
...
e2513de6c6 (commitcomment-3192244)
2013-05-11 16:09:40 +02:00
e2513de6c6
better testing: time()-function-mock
...
as discussed in #203
https://github.com/yiisoft/yii2/issues/203#issuecomment-17759631
2013-05-11 15:41:00 +02:00
71a9efdd55
changed cache test to wait more than expirytime
...
change is to avoid random test failure on race condition.
fixes #203 #231
2013-05-11 13:33:05 +02:00
6a7529505e
cache tests refactoring cherry picked from redis branch
2013-05-11 13:16:47 +02:00
e0ad712527
Merge pull request #204 branch 'unittest-app-dependency' of https://github.com/bwoester/yii2 into bwoester-unittest-app-dependency
...
* 'unittest-app-dependency' of https://github.com/bwoester/yii2 :
mod: incorporate suggestions - rename requireApp() to mockApplication() - always destroy app on tearDown() - eliminates need for constant YII_DESTROY_APP_ON_TEARDOWN - mockApplication() becomes a lot easier. Destroying app on each tearDown means creating it on every call is fine. No more checking if it already exists and if it has been created from the same config. - \yii::$app should have been \Yii::$app
add: new key for unit tests config named "className". Allows to run the tests using different Application instances (consoleApp/ webApp) mod: TestCase::getParam accepts second param $default=null
mod: don't create app in bootstrap script, unit tests do it themselves add: option to destroy app after each test to find unit tests that fail to require an app
allow unit tests to requireApp() on setUp()
Conflicts:
tests/unit/data/config.php
2013-05-11 12:22:49 +02:00
5575f53657
CS fixes.
2013-05-11 15:38:07 +06:00
f23a677bdf
mod: incorporate suggestions
...
- rename requireApp() to mockApplication()
- always destroy app on tearDown()
- eliminates need for constant YII_DESTROY_APP_ON_TEARDOWN
- mockApplication() becomes a lot easier. Destroying app on each tearDown
means creating it on every call is fine. No more checking if it already
exists and if it has been created from the same config.
- \yii::$app should have been \Yii::$app
2013-05-10 02:01:08 +02:00
d4b30e26c2
allow unit tests to requireApp() on setUp()
2013-05-09 20:41:57 +02:00
d712605a71
Added and resolved Sqlite tests #15 .
2013-05-09 23:12:18 +06:00
ca9194a365
Code style fixes
2013-05-07 20:17:35 +04:00
4be9e195c2
Add Newlines
...
Appended newlines to every PHP document that did not have a newline as the last character in the file.
2013-05-05 17:04:55 +01:00
802c0c94a8
Check apc.enable_cli for ApcTestCase unit tests
2013-05-05 19:18:04 +04:00
09dbaeb700
more assertions for cache test
2013-04-23 15:00:41 +04:00
4d59587320
fixed constructor overriding in test classes
...
now use setUp() instead
2013-03-29 01:10:03 +01:00
64fb2a815c
added tests for cache
2013-02-07 23:48:55 +04:00