Commit Graph

10542 Commits

Author SHA1 Message Date
Carsten Brandt
48f388442f mocking time in test only usefull when using time() once
e2513de6c6 (commitcomment-3192244)
2013-05-11 16:09:40 +02:00
Klimov Paul
f82a01e4dd "YiiRequirementChecker::check()" has been updated to be able to collect different requirements set in the chained call. 2013-05-11 17:01:54 +03: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
Klimov Paul
3b7ac70c69 Test case "YiiRequirementCheckerTest::testCheckEval()" has been added. 2013-05-11 16:27:58 +03:00
Klimov Paul
00d04a1c30 Method "YiiRequirementChecker::check()" has been refactored to be used in method chain.
Methods "YiiRequirementChecker::getResults()" and "YiiRequirementChecker::render()" have been added.
2013-05-11 16:26:16 +03:00
Klimov Paul
07fabfd6fc Method "YiiRequirementChecker::check()" has been implemented. 2013-05-11 16:18:14 +03:00
Klimov Paul
3374c78233 "YiiRequirementChecker" has been created as blank. 2013-05-11 16:06:34 +03:00
Carsten Brandt
fd5e6ccfed fixed db exception according to signature change 2013-05-11 15:06:32 +02:00
Carsten Brandt
baac7e14df moved classes from framework -> yii 2013-05-11 14:56:24 +02:00
Qiang Xue
c4e9e003af Merge pull request #230 from creocoder/rbac-db-manager-code-style
RBAC: DbManager code style
2013-05-11 05:04:39 -07: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
9c2eb4df0a doc fix in caching classes 2013-05-11 13:20:19 +02:00
Carsten Brandt
6a7529505e cache tests refactoring cherry picked from redis branch 2013-05-11 13:16:47 +02:00
Carsten Brandt
3518813ac4 Merge branch 'master' into redis
* master: (108 commits)
  fixed indentation in test files
  cleanup tests
  Travis-CI build status.
  CS fixes.
  CS fixes.
  Change magic property to normal method. (Thanks to @maxlapko.)
  CS fixes.
  Fixed duplicated merge.
  Fixes issue #50: implemented pager widgets.
  fix: remove pointless unset
  remove fix for unset timezone from bootstrap app
  mod: don't use ArrayHelper to avoid loading another class during every request
  better have timezone fix in application
  Add exception classes hierarchy UML diagram.
  Initial Gettext support.
  RBAC sql files identation fix
  RBAC sql files
  DbManager some Db fields renaming
  DbManager code style fix + right Exception type fix
  Unit tests fix
  ...

Conflicts:
	tests/unit/framework/caching/ApcCacheTest.php
	tests/unit/framework/caching/CacheTest.php
2013-05-11 13:12:49 +02:00
Carsten Brandt
3bdb6c3110 fixed indentation in test files 2013-05-11 12:54:13 +02:00
Carsten Brandt
cb8f5d702f cleanup tests 2013-05-11 12:51:24 +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
4686c7c386 Merge branch 'master' of github.com:yiisoft/yii2 into mssql 2013-05-11 16:15:09 +06:00
resurtm
abeb02e902 Travis-CI build status. 2013-05-11 16:12:47 +06:00
resurtm
c98628d42e CS fixes. 2013-05-11 16:09:40 +06:00
resurtm
ea68bd3a55 CS fixes. 2013-05-11 15:58:27 +06:00
resurtm
b314d96355 Change magic property to normal method. (Thanks to @maxlapko.) 2013-05-11 15:43:19 +06:00
resurtm
35562bfada Merge branch 'master' of github.com:yiisoft/yii2
Conflicts:
	apps/bootstrap/index.php
	yii/yiic.php
2013-05-11 15:39:51 +06:00
resurtm
5575f53657 CS fixes. 2013-05-11 15:38:07 +06:00
resurtm
5c101ae314 Initial MSSQL tests. 2013-05-11 14:58:35 +06:00
resurtm
58f3c323c0 MSSQL Schema: methods order changed, initial data type infer. 2013-05-11 12:22:14 +06:00
Alexander Kochetov
a24e4d30f6 RBAC: DbManager code style fixes 2013-05-11 09:48:04 +04:00
Alexander Kochetov
70265587fb RBAC: DbManager code style fixes 2013-05-11 09:43:45 +04:00
resurtm
1ca7558c1d MSSQL table metadata parsint (initial version). 2013-05-11 11:34:32 +06:00
Alexander Kochetov
af3f5af3be RBAC: Item and Assignment optimized save approach 2013-05-11 09:24:02 +04:00
sensorario
dc31ea9892 Fixed merge 2013-05-11 06:29:29 +02:00
resurtm
f2e6d408e3 MSSQL driver classes moved to the proper location. 2013-05-11 09:40:04 +06:00
resurtm
9873442d70 Merge branch 'master' of github.com:yiisoft/yii2 into mssql
Conflicts:
	yii/db/Connection.php
2013-05-11 09:38:14 +06:00
Qiang Xue
a87e64c650 Fixed duplicated merge. 2013-05-10 22:40:26 -04:00
Qiang Xue
71897b4b76 Merge pull request #210 from bwoester/fix-209-default-timezone
Fix issue #209 default timezone
2013-05-10 19:39:28 -07:00
Qiang Xue
d9923c5413 Merge pull request #223 from cebe/timezone-fix
better have timezone fix in application
2013-05-10 19:38:43 -07:00
Qiang Xue
a062edd6d6 Merge pull request #221 from resurtm/get-text-i18n
[WIP] Gettext support
2013-05-10 19:37:47 -07:00
Qiang Xue
4feec1d530 Merge branch 'master' of https://github.com/yiisoft/yii2 2013-05-10 22:33:29 -04:00
Qiang Xue
22ca2922d2 Fixes issue #50: implemented pager widgets. 2013-05-10 22:33:24 -04:00
Benjamin Wöster
49a4314a41 fix: remove pointless unset 2013-05-11 03:39:19 +02:00
Benjamin Wöster
6d46abcd88 remove fix for unset timezone from bootstrap app 2013-05-11 03:36:58 +02:00
Benjamin Wöster
8c6cf61589 mod: don't use ArrayHelper to avoid loading another class during every request 2013-05-11 03:28:05 +02:00
Carsten Brandt
b005b087b4 better have timezone fix in application
app is resposible for setting time zone, so it should also do the
fixing.
+ documentation about the behavior.
issue #210 and #209
2013-05-11 01:17:51 +02:00
resurtm
1c1b2da5b1 Add exception classes hierarchy UML diagram. 2013-05-11 00:17:50 +06:00
resurtm
124b153350 Initial Gettext support. 2013-05-10 23:57:24 +06:00
Qiang Xue
5873d4b386 Merge pull request #220 from creocoder/rbac-sqls-identation-fix
RBAC sql files a little identation fix
2013-05-10 10:53:02 -07:00
Alexander Kochetov
176366a24d RBAC sql files identation fix 2013-05-10 21:49:54 +04:00
Qiang Xue
92e0f59106 Merge pull request #219 from creocoder/rbac-sqls
RBAC sql files
2013-05-10 10:44:53 -07:00
Alexander Kochetov
f554d3ec2e RBAC sql files 2013-05-10 21:41:07 +04:00
Qiang Xue
9ccf7ae3d3 Merge pull request #212 from creocoder/db-auth-manager-enh
Suggest \yii\rbac\DbManager some Db fields renaming
2013-05-10 07:47:32 -07:00