Commit Graph

38 Commits

Author SHA1 Message Date
Carsten Brandt
8ac2b7364d moved redis to extensions 2013-11-25 02:27:04 +01:00
Carsten Brandt
09a3300b7c refactored redis cache, added mset() 2013-11-17 21:09:13 +01:00
Alexander Makarov
1a7a15a3ef Implemented mset, madd for cache. Added tests. 2013-11-17 04:00:43 +04:00
Alexander Makarov
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
Carsten Brandt
15a9b04fcc simplified travis env check for memcache(d) 2013-10-29 13:54:55 +01:00
Carsten Brandt
f5c25e0858 travis memcache env check: try again 2013-10-29 13:49:00 +01:00
Carsten Brandt
a75c07be22 print travis ENV 2013-10-29 13:35:15 +01:00
Carsten Brandt
0e3d48f288 skip expiry test for memcache on travis
fixes #877
2013-10-29 13:10:51 +01:00
Panagiotis Moustafellos
3ebbab0284 marked mset() test incomplete 2013-10-29 00:49:31 +02:00
Panagiotis Moustafellos
4cf05205d4 added cache mset() base test 2013-10-29 00:18:22 +02:00
Alexander Mohorev
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
Alexander Makarov
ee2af2661c Removed unneeded use statements 2013-10-24 03:12:25 +04:00
Alexander Makarov
1f6a823073 Short array syntax 2013-10-18 20:52:38 +04:00
Carsten Brandt
3f88320595 second try to fix random memcache failure on travis
issue #877
2013-10-02 12:27:04 +02: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
949dda5fdb tagged tests with @group tags 2013-09-14 12:49:47 +02: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
Alexander Makarov
0596fa82fd code style fixes 2013-08-13 02:43:47 +04:00
Qiang Xue
f5d0bcbcfc Refactored cache key generation. 2013-05-26 17:09:09 -04:00
Alexander Makarov
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
Alexander Makarov
a021fbe54d Skipped ApcCacheTest expire 2013-05-12 18:24:01 +04:00
Carsten Brandt
48f388442f mocking time in test only usefull when using time() once
e2513de6c6 (commitcomment-3192244)
2013-05-11 16:09:40 +02:00
Carsten Brandt
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
Carsten Brandt
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
Carsten Brandt
6a7529505e cache tests refactoring cherry picked from redis branch 2013-05-11 13:16:47 +02:00
Carsten Brandt
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
resurtm
5575f53657 CS fixes. 2013-05-11 15:38:07 +06:00
Benjamin Wöster
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
Benjamin Wöster
d4b30e26c2 allow unit tests to requireApp() on setUp() 2013-05-09 20:41:57 +02:00
Rusinov Maxim
d712605a71 Added and resolved Sqlite tests #15. 2013-05-09 23:12:18 +06:00
Alexander Kochetov
ca9194a365 Code style fixes 2013-05-07 20:17:35 +04:00
Zander Baldwin
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
Rinat Silnov
802c0c94a8 Check apc.enable_cli for ApcTestCase unit tests 2013-05-05 19:18:04 +04:00
Alexander Makarov
09dbaeb700 more assertions for cache test 2013-04-23 15:00:41 +04:00
Carsten Brandt
4d59587320 fixed constructor overriding in test classes
now use setUp() instead
2013-03-29 01:10:03 +01:00
Alexander Makarov
64fb2a815c added tests for cache 2013-02-07 23:48:55 +04:00