Commit Graph

3198 Commits

Author SHA1 Message Date
Alexander Makarov
a021fbe54d Skipped ApcCacheTest expire 2013-05-12 18:24:01 +04:00
Qiang Xue
23e820e6bd Merge pull request #229 from creocoder/rbac-item-assignment-improve
RBAC: Item and Assignment optimized save approach
2013-05-11 16:38:12 -07:00
Klimov Paul
8ab1d837a6 Merge branch 'master' of github.com:yiisoft/yii2 2013-05-11 20:17:29 +03:00
Klimov Paul
43a04d237a Doc comments for "YiiRequirementChecker" have been updated. 2013-05-11 20:04:12 +03:00
Klimov Paul
9a461edd07 Check helper methods have been added to "YiiRequirementChecker". 2013-05-11 19:07:14 +03: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
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
baac7e14df moved classes from framework -> yii 2013-05-11 14:56:24 +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
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
ea68bd3a55 CS fixes. 2013-05-11 15:58:27 +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
Alexander Kochetov
af3f5af3be RBAC: Item and Assignment optimized save approach 2013-05-11 09:24:02 +04:00
resurtm
124b153350 Initial Gettext support. 2013-05-10 23:57:24 +06:00
Alexander Kochetov
4b8bcd43e0 Unit tests fix 2013-05-10 16:18:01 +04:00
Alexander Kochetov
bea449f8a0 Unit tests 2013-05-10 16:11:04 +04: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
Qiang Xue
ecbae28700 Merge pull request #197 from tonydspaniard/196-add-popvalue-method
Enhance ArrayHelper with popValue method
2013-05-09 16:20:59 -07:00
Benjamin Wöster
c30ee60e9c 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
2013-05-09 22:06:58 +02:00
Benjamin Wöster
5e0f6604e8 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
2013-05-09 21:56:36 +02:00
Benjamin Wöster
d4b30e26c2 allow unit tests to requireApp() on setUp() 2013-05-09 20:41:57 +02:00
Rusinov Maxim
0ad55efba9 Merge branch 'master' of git://github.com/yiisoft/yii2 into 15-unit-tests-of-sqlite-driver 2013-05-09 23:37:39 +06:00
Rusinov Maxim
452be102c6 Added newline at end files. 2013-05-09 23:27:19 +06:00
Rusinov Maxim
d712605a71 Added and resolved Sqlite tests #15. 2013-05-09 23:12:18 +06:00
Antonio Ramirez
18f23ff143 Merge branch 'master' of git://github.com/yiisoft/yii2 into 196-add-popvalue-method
* 'master' of git://github.com/yiisoft/yii2:
  Updated framework paths in composer.json
  Moved "framework" to "iii".
  Fixed Yii::importNamespaces() bug.
  Fixes issue #174: make URL parameters available in $_GET.
  refactoring.
  Removed static variable from autoload per qiangxue's suggestion
  Renamed yii.php -> Yii.php for class, filename consitency
  created StringHelper::basename()
  Fixed YiiBaseTest echo
  Check if trait was loaded
2013-05-09 18:26:16 +02:00
Antonio Ramirez
5da62fab3a #196 refactored method name 2013-05-09 18:23:10 +02:00
Qiang Xue
0d814fa523 Moved "framework" to "iii". 2013-05-09 12:00:15 -04:00
Carsten Brandt
2387e59c4e Renamed yii.php -> Yii.php for class, filename consitency
See https://github.com/yiisoft/yii2/issues/123#issuecomment-17657374
Issue #123
2013-05-09 13:31:43 +02:00
Carsten Brandt
776162b05e created StringHelper::basename()
In contrast to php function basename() It that always uses \ and /
as directory separator.
It is needed for use on Classnames that contain namespaces.
Fixes #192
2013-05-09 13:16:40 +02:00
Carsten Brandt
849740e6cc Fixed YiiBaseTest echo
it echoed Yii version which is not necessary
2013-05-09 13:16:40 +02:00
Antonio Ramirez
e2a57e4b88 Enhance ArrayHelper with popValue method 2013-05-09 12:42:50 +02:00
Alexander Kochetov
ca9194a365 Code style fixes 2013-05-07 20:17:35 +04:00
Qiang Xue
dd5969147d move JsExpression to web. 2013-05-07 07:39:24 -04:00
Carsten Brandt
f59f39087f Merge branch 'master' of github.com:yiisoft/yii2 into redis
* 'master' of github.com:yiisoft/yii2: (87 commits)
  Added dirty attribute description.
  Fixed doc about renderers.
  Finished the initial draft of upgrading instructions
  Fix attaching behavior via config
  Changed default value of View::renderers.
  Fix attaching behavior via config
  Menu WIP
  upgrading instructions WIP
  Refactored Breadcrumbs.
  Fixes issue #54: Implemented Breadcrumbs.
  Added Breadcrumbs.php
  Fixes issue #134
  Rollback word consistencty over entire codebase (ref. #139).
  Add ensureBehaviors() to detachBehavior*()
  Fixes issue #124.
  code reorganization fix.
  reorganized app code. removed app template from framework folder.
  Fixes issue #128.
  Fixes issue #124.
  Add Newlines
  ...

Conflicts:
	tests/unit/framework/caching/ApcCacheTest.php
2013-05-07 01:53:24 +02:00
Qiang Xue
034d88e5e4 Fixes issue #134 2013-05-06 08:04: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
Qiang Xue
6e779e02d6 Fixed issue #7: ArrayHelper::multisort is not compatible with PHP 5.3 2013-05-04 21:24:00 -04:00