2875 Commits

Author SHA1 Message Date
82a6281c65 added tests 2013-05-21 01:04:28 +02:00
a77bfea21d Merge branch 'master' of github.com:yiisoft/yii2
* 'master' of github.com:yiisoft/yii2: (31 commits)
  Finished bootstrap Widget and Modal.
  PHP Intl extension has been added to default Yii requirements.
  moved optional packages to "suggest", updated platform requirements
  "vendor-dir": "vendor" is default, removed
  Fixes issue #320: Module::createController() will fail with a route with trailing slash.
  Fixed test break about AssetController.
  requirements css.php twitter bootstrap update to 2.3.2
  Twitter bootstrap updated to 2.3.2
  Modified the IAssetConvert interface.
  hashing the key for registerCss and registerJs.
  Update AccessRule.php
  refactored code after feedback
  Fixed framework path.
  Added support for View::POS_READY.
  new proposed structure
  remove from master (update track)
  minor fixes
  updated the README file of the bootstrap app.
  Inflector class
  readjusting files for the framework package.
  ...
2013-05-20 22:40:20 +02:00
ceaca378f9 Merge pull request #296 from Ragazzo/response-fix-tests-added
fixed range requests, tests improved
2013-05-20 10:39:55 -07:00
4695362ae2 Unit test for "yii\console\controllers\AssetController" has been adjusted. 2013-05-18 21:40:39 +03:00
9f66abc984 "yii\console\controllers\AssetController" has been updated:
- assetManager has been converted into virtual property
 - bundle dependency load has been fixed
2013-05-18 21:33:06 +03:00
d4b896f65c "ManagerTestBase::testExecuteBizRule()" has been fixed to not produce side effects on other tests. 2013-05-18 17:28:28 +03:00
285a45520c fixed auth manager unit test to not expect generic exception
This is not allowed by phpunit as a test may not fail anymore
2013-05-18 13:41:09 +02:00
14228f8615 Merge branch 'asset-command' 2013-05-17 11:57:00 +03:00
9e948ccd43 Added UrlRule::host. 2013-05-16 23:54:06 -04:00
b6fffeb0e4 Removed trailing slash in created URLs. 2013-05-16 23:21:08 -04:00
e6b52b8523 Fixes issue #268: added support for subdomain matching of URL rules. 2013-05-16 23:15:30 -04:00
c676e92d74 Merge branch 'master' of github.com:yiisoft/yii2 into asset-command 2013-05-16 20:55:22 +03:00
d3beeb7ddc Usage of "yii\console\controllers\AssetController::actionCompress()" has been clarified. 2013-05-16 20:38:02 +03:00
06752ae9e7 Doc comments for "yii\console\controllers\AssetController" has been updated. 2013-05-16 20:13:49 +03:00
563f992bec Unit test for "yii\console\controllers\AssetController" has been refactored. 2013-05-16 19:49:15 +03:00
1f3f661292 fixed range requests, tests improved 2013-05-16 17:47:22 +04:00
8d17fcccaa Error "yii\console\controllers\AssetController::combineCssFiles()" has been fixed. 2013-05-16 16:42:06 +03:00
0ecdcae54a Method "yii\console\controllers\AssetController::buildTarget()" has been fixed to compose input file name correctly. 2013-05-16 16:31:29 +03:00
f9b06e1e6d Unknown property "yii\console\controllers\AssetController::publishOptions" error has been fixed. 2013-05-16 15:38:46 +03:00
98b3cc07cd Test case "AssetControllerTest::testActionCompress()" has been created as draft. 2013-05-16 15:17:42 +03:00
5092612217 Method "console\controllers\AssetController::actionTemplate()" has been updated to be more verbose. 2013-05-16 14:34:27 +03:00
986bfccd34 Fixes issue #294. 2013-05-16 07:25:55 -04:00
f4cb1e4a0a Unit test for "console\controllers\AssetController" has been created. 2013-05-16 14:21:49 +03:00
0005b07d29 Removed Vector and Dictionary. 2013-05-15 20:27:41 -04:00
01b478f48c Merge branch 'Ragazzo-partial-response-enh'
* Ragazzo-partial-response-enh:
  refactored web/Response::sendFile()
  Display Name of HttpException instead of classname
  string helper fixed, mime-type reverted
  code style fix
  partial response added, new code-style applied
2013-05-15 20:42:25 +02:00
a2c6d22124 refactored web/Response::sendFile()
- better throw http exception on not satisfiable range request
- constitent header names
- fixed range end when range request is to the end
- added unit test

related to #275, fixes #148
2013-05-15 20:39:23 +02:00
59cb5d1199 Add unit test 2013-05-15 15:59:47 +03:00
a021fbe54d Skipped ApcCacheTest expire 2013-05-12 18:24:01 +04:00
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
8ab1d837a6 Merge branch 'master' of github.com:yiisoft/yii2 2013-05-11 20:17:29 +03:00
43a04d237a Doc comments for "YiiRequirementChecker" have been updated. 2013-05-11 20:04:12 +03:00
9a461edd07 Check helper methods have been added to "YiiRequirementChecker". 2013-05-11 19:07:14 +03:00
48f388442f mocking time in test only usefull when using time() once
e2513de6c6 (commitcomment-3192244)
2013-05-11 16:09:40 +02:00
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
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
3b7ac70c69 Test case "YiiRequirementCheckerTest::testCheckEval()" has been added. 2013-05-11 16:27:58 +03:00
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
07fabfd6fc Method "YiiRequirementChecker::check()" has been implemented. 2013-05-11 16:18:14 +03:00
3374c78233 "YiiRequirementChecker" has been created as blank. 2013-05-11 16:06:34 +03:00
baac7e14df moved classes from framework -> yii 2013-05-11 14:56:24 +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
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
3bdb6c3110 fixed indentation in test files 2013-05-11 12:54:13 +02:00
cb8f5d702f cleanup tests 2013-05-11 12:51:24 +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
4686c7c386 Merge branch 'master' of github.com:yiisoft/yii2 into mssql 2013-05-11 16:15:09 +06:00
ea68bd3a55 CS fixes. 2013-05-11 15:58:27 +06:00
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
5575f53657 CS fixes. 2013-05-11 15:38:07 +06:00