Commit Graph

24 Commits

Author SHA1 Message Date
Qiang Xue
78d3a856d3 Added Json::htmlEncode() to support safer JSON data encoding in HTML code 2015-05-09 23:38:17 -04:00
Carsten Brandt
94d6843f8b added FragmentCache test for issue #8273 2015-05-05 23:12:10 +02:00
Klimov Paul
bc735bb390 FileHelper usage added to AssetControllerTest 2015-05-04 20:07:19 +03:00
Nikola Kovacs
b31b9e2411 Fix conversion of ICU 'L' symbol.
L should not contain a leading zero.
Added a test for this too.

close #7761
2015-05-03 01:04:49 +02:00
Nikola Kovacs
3f24954659 Added min/max option to DateValidator.
Refs #7514
close #8115
2015-05-03 00:50:35 +02:00
Carsten Brandt
1c41c2bd58 added DateValidator::$timestampAttributeTimeZone
this also makes DateValidator completly functional for validating values that include time.

issue #5053
2015-05-02 23:52:37 +02:00
Carsten Brandt
d60445c066 Add DateValidator::$timestampAttributeFormat
includes refactoring of the formatting method to fix some major timezone issues.

fixes #5053
close #6820
2015-05-01 18:53:28 +02:00
Carsten Brandt
543daf099f Added Formatter:$numberFormatterSymbols
this allows to specify custom symbols such as currency symbol.
also improved error reporting in case intl fails

fixes #7915, close #7920
2015-04-30 19:10:17 +02:00
Carsten Brandt
159c17abec added tests for non intl #8203 2015-04-27 23:40:28 +02:00
Carsten Brandt
1b1147bdad added unit test for #8203 2015-04-27 23:39:04 +02:00
Paul Klimov
a2af3868ad Test for yii\helpers\VarDumper unified 2015-04-22 18:57:47 +03:00
Klimov Paul
f2f211f610 Fallback for object containing \Closure added to yii\helpers\VarDumper::export() 2015-04-22 18:13:40 +03:00
Carsten Brandt
91777ae7cc added test for explicit primary Key on auto increment column
relates to #8071
https://github.com/yiisoft/yii2/pull/8071/files#r28787581
2015-04-21 17:20:32 +02:00
Klimov Paul
6d96d3cbee Fixed yii\db\BaseActiveRecord::updateCounters() fails for new record saved with counter attribute not set 2015-04-21 16:23:00 +03:00
Paul Klimov
30234292ac Merge pull request #8071 from klimov-paul/5042-insert-returning
Insert into returning alternative
2015-04-21 10:33:01 +03:00
Qiang Xue
631d0ffb66 Merge pull request #8055 from Agrumas/patch-2
[REST] extraPatterns should take precedence over patterns
2015-04-20 21:44:20 -04:00
Alexander Makarov
28dce6c9b6 Fixes #7656: Fixed yii\rbac\DbManager::getRolesByUser() and yii\rbac\PhpManager::getRolesByUser() to return roles only 2015-04-21 00:29:04 +03:00
Klimov Paul
8caaba0168 Allow specification of the $key as an array at yii\helpers\ArrayHelper::getValue() 2015-04-20 15:52:32 +03:00
Klimov Paul
aa9399c6c0 Merge branch 'master' of github.com:yiisoft/yii2 into 5042-insert-returning 2015-04-20 11:23:38 +03:00
Agrumas
ef912f4e43 [REST] specifying a higher priority rule via extraPatterns 2015-04-19 15:19:33 +03:00
Klimov Paul
85ca8c3712 Added ability to specify hints for model attributes 2015-04-17 14:16:28 +03:00
Alexander Makarov
f21b8511c9 Fixed test 2015-04-17 11:52:57 +03:00
Alexander Makarov
a733ecd40c yii\widgets\LinkPager::$firstPageLabel and yii\widgets\LinkPager::$lastPageLabel now could be set to true in order to use page number as label 2015-04-17 11:51:48 +03:00
Alexander Makarov
6949992246 Simplified tests directory structure a bit 2015-04-16 12:10:01 +03:00