Alexander Makarov
34d2223696
Fix for 5.4 and 5.5 tests
7 years ago
Alexander Makarov
a1ddd8b907
Fixes #14129 : Fixed console help to properly work with tricky camelcased controller names
7 years ago
Sam
537317fbb1
Fixes #14126 : Added variadic parameters support to DI container
7 years ago
Robin Kamps
75e8bfdc58
Fixes #14087 : Added `yii\web\View::registerCsrfMetaTags()` method that registers CSRF tags dynamically ensuring that caching doesn't interfere
7 years ago
Sam
04281cba8c
Fixes #14793 : Module `->get()` and `->has()` methods now check parent modules and fall back to application if nothing found
7 years ago
SilverFire - Dmitry Naumenko
1ce796ef0f
Removed ability to define a hostname as trusted because of possible security issues
...
Closes #14691
7 years ago
SilverFire - Dmitry Naumenko
40ae296b82
Fixed broken test
7 years ago
SilverFire - Dmitry Naumenko
f9b0090a7d
Added more tests for FileValidator to make sure it works as should
...
Closes #14778
7 years ago
Carsten Brandt
36b535c26b
Fixes #13254 : Made `yii\helpers\StringHelper` and `yii\validators\StringValidator` independent of `Yii::$app` instance
7 years ago
Alexander Makarov
61996979db
Removed commented out code
...
See e69adc19a7 (commitcomment-24119433)
7 years ago
Klimov Paul
e69adc19a7
Fixed `yii\widgets\ActiveField::$options` does not support 'class' option in array format
7 years ago
Dmitry Dorogin
9b01ca275f
Fixes #14273 : yii\log\Target::$enabled now supports callable value ( #14539 )
...
* Fixes #14273 : yii\log\Target:: now supports callable value
* added empty line in changelog [skip ci]
* getter and setter
* Update Target.php
7 years ago
Klimov Paul
a4bd0edeaa
unit test for `yii\base\Widget` added
7 years ago
Klimov Paul
9e6f9e3b6d
Fixed serialization of `yii\db\Connection` instance closes database connection
7 years ago
Carsten Brandt
431c1b01a7
added test case for merging empty arrays
...
issue #14617
7 years ago
Carsten Brandt
711498f93a
Cache user assignments to avoid unnecessary DB queries ( #14696 )
...
* Cache user assignments to avoid unnecessary DB queries
alternative to #9138 and #10981 , only cache on `checkAccess` call which is usually
called on every request. Cache is not necessary in RBAC management.
Similar to #14061 but includes proper cache invalidation and test.
`getAssignments()` always queries the DB. The cache is only applied on
`checkAccess` calls, and invalidated as soon as the RBAC structure is
modified through the manager component (verified by the test case).
Regarding [concerns of memory usage](https://github.com/yiisoft/yii2/pull/14061#issuecomment-297982502 )
if used in batch mode on multiple users, you can call
`invalidateCache()` method if this really causes a problem.
fixes #7743
close #9138
close #14061
close #10981
See also
- https://github.com/yiisoft/yii2/issues/7626#issuecomment-77745166
- https://github.com/yiisoft/yii2/pull/14061#issuecomment-319645488
* improve test naming
* fix tests
* fix assignment cache for non-scalar user-ids
7 years ago
Carsten Brandt
f7942c0398
make cache test more robust
7 years ago
Kolyunya
f866edcfba
Fix console cache controller
...
Fixed a bug in a `yii\console\controllers\CacheController` when caches
defined via a closure were not detected.
fixes #13969
close #14586
7 years ago
Paul Klimov
d68789a195
Fixes #13779 , fixes #5786
...
- #13779 : Fixed `yii\db\ActiveRecord::joinWith()` unable to use relation defined via attached behavior.
- #5786 : Allowed to use custom constructors in ActiveRecord-based classes.
7 years ago
bscheshirwork
8987957f06
Fixes #14697 : Fixed `console\widgets\Table` rendering when there's no data supplied
7 years ago
Robert Korulczyk
771a9faed2
Fixed invalid tests ( #14716 )
7 years ago
Sam
4081a4b203
Fixes #14184 : Module service locator now falls back to its parent module service locator in case component isn't found
7 years ago
SilverFire - Dmitry Naumenko
0e2b6c41b8
Simplified API of `Formatter::asWeight()` and `Formatter::asLength()` methods
7 years ago
Robert Korulczyk
5a8c3d537b
Enable `phpdoc_summary` rule in php-cs-fixer config ( #14675 )
...
* Enable `phpdoc_summary` rule in php-cs-fixer config.
* Fix case in "PHPDoc".
7 years ago
Robert Korulczyk
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
7 years ago
Robert Korulczyk
0c0942d6e2
Enable `phpdoc_add_missing_param_annotation` rule in php-cs-fixer config. ( #14681 ) [skip ci]
7 years ago
Robert Korulczyk
4d5aa9a6cf
Fix self-ignored .gitignore files.
7 years ago
Herbert Maschke
58792cdac5
Fixes #14664 : Add migrate/fresh command to truncate database and apply migrations again
7 years ago
Robert Korulczyk
9b118aafa0
Enable `non_printable_character` rule in php-cs-fixer config ( #14667 )
...
* Use "\u{00a0}" as nbsp.
* Enable non_printable_character rule.
* Fix test for PHP 5.
7 years ago
Robert Korulczyk
b99e955627
Fix CS ( #14665 )
...
* Run php-cs-fixer.
* Enable phpdoc_types rule.
7 years ago
Tomáš Votruba
7ad94a0107
[cs] remove unused use statements ( #14661 ) [skip ci]
7 years ago
Alone
4b9d7a6bdd
Fixes #14596 : Fix event call on init in `yii\widgets\BaseListView`
7 years ago
Alexander Makarov
0ebff0a7ab
Fixed ListView test to run properly on Windows
7 years ago
Sam
0017d9c660
Fixes #13780 : Added support for trusted proxies in `yii\web\Request`
7 years ago
SilverFire - Dmitry Naumenko
87f988fe54
One more try to fix tests on Travis
7 years ago
SilverFire - Dmitry Naumenko
6424acf67f
One more try to fix tests on Travis
7 years ago
SilverFire - Dmitry Naumenko
b9f582dbf3
Try to fix tests on Travis
7 years ago
SilverFire - Dmitry Naumenko
7c73b0b79d
Enhanced tests, updated CHNAGELOG
7 years ago
SilverFire - Dmitry Naumenko
b577e302f7
Enhanced PHPDocs, added tests
7 years ago
Carsten Brandt
3dbc07f8dd
fix test to work around PDO bug
...
This test is failing on PHP 7.0.7 on travis but seems fine
on PHP 7.1.x > 7.1.0-alpha
See:
- cda3089623
- https://gist.github.com/cebe/badfec47a8c3fcc4ffcf1625ca8e0655
7 years ago
Alexander Makarov
e9fad56381
#14151 : Added attribute name to AttributesBehavior callback signature
...
See 6ffa5fb087 (commitcomment-23630375)
7 years ago
Alexander Makarov
7cac7f131d
Set back original locale in #14448 test
7 years ago
bscheshirwork
2b9b0c7166
Fixes #14151 : Added `AttributesBehavior` that assigns values specified to one or multiple attributes of an AR object when certain events happen
7 years ago
Carsten Brandt
cda3089623
Fixed batchInsert casting of double values according to locale ( #14448 )
...
fixes #6526
7 years ago
SilverFire - Dmitry Naumenko
368540f8d0
Added tests
7 years ago
Alexander Makarov
648971a82b
Fixes #14542 : Ensured only ASCII characters are in CSRF cookie value since binary data causes issues with ModSecurity and some browsers
7 years ago
Alexander Makarov
6fdeba501d
Adjusted tests after 1761a10c13
7 years ago
bscheshirwork
0c0cc1074d
fix current time in formatter ( #14203 )
...
* fix current time in formatter
* expand testAsDatetime
* Update FormatterDateTest.php
* Update CHANGELOG.md
7 years ago
Bizley
d6578f83ba
Codeclimate rules update ( #13915 )
7 years ago
Dmitry Dorogin
f7fb7cdd87
Fixes #14022 : Added posibility to use aliases in yii\web\UrlManager::setBaseUrl() ( #14540 )
7 years ago