Alexander Makarov
3dd55954e8
Fixed tests
7 years ago
Elvira Sheina
13cd7d7ee0
Fixes #6588 : Fixed changing array keys after validation of multiple files in `yii\validators\FileValidator`
7 years ago
SilverFire - Dmitry Naumenko
5c6ba33e55
Disabled only PgSQL tests of DbSession in HHVM
7 years ago
SilverFire - Dmitry Naumenko
0dede3922d
Disabled DbSession tests for HHVM
7 years ago
Alexander Makarov
fb23b0d0ea
Code style fixes
7 years ago
SilverFire - Dmitry Naumenko
4831263716
Fixed tests for HHVM and PHP 5.4
7 years ago
SilverFire - Dmitry Naumenko
993eb5dcf8
Fixed RBAC tests
...
Before the fix, in case when RBAC tests for PgSQL and MySQL are runed
in same process sequentially, the second one reused old DB connection
creating mess in DBMS. Ha, see the rhyme: Creating mess in DBMS. :D
7 years ago
Dmitry Naumenko
2faf771118
Fixes #13436 : Fixed migration for MSSQL DbSession
7 years ago
SilverFire - Dmitry Naumenko
c0d8b0a817
Fixed sqlite tests
...
Prevent marking some tests as risky
7 years ago
SilverFire - Dmitry Naumenko
06d7a1f0c6
Improved ConnectionTest performance
...
Methods testMastersShuffled and testMastersSequential executed about 30 seconds each.
This commit reduces execution time to 2-5 seconds each.
7 years ago
SilverFire - Dmitry Naumenko
dbe7f7cac0
Disabled slow test on Travis
7 years ago
Carsten Brandt
e311001ef5
#14543 : Adjusted implementation of migration name length limit
7 years ago
SilverFire - Dmitry Naumenko
336404e0b9
PHP7.2RC5: enabled INTL tests, continue disabling some cases in FileValidator
7 years ago
Alexander Makarov
376006a2d5
Data filter enhancements and docs
...
- Added docs.
- Moved to "data" namespace.
- Moved messages to "yii" category.
- Added Russian messages translation.
7 years ago
Dmitry Dorogin
614fb52c45
Fixes #14543 : Throw exception when trying to create migration longer than 255 symbols
7 years ago
Dmitry Naumenko
7e7faeebd1
Fixed excess escaping in Command::batchInsert() ( #13236 )
7 years ago
Dmitry Naumenko
64d8af61a6
Fixes for PHP 7.2 compatibility ( #14959 )
7 years ago
Pavel Chaplygin
d49ec7b8be
Fixes #14633 : Add miliseconds to log time in `\yii\log\Target`
7 years ago
Klimov Paul
560d5b53e7
unit test fix
7 years ago
Paul Klimov
744b87fabc
Fixes #4479 : Implemented REST filters
7 years ago
Herbert Maschke
c9de616b4c
Fixes #13403 : Added 'permissions' additionally to 'roles' in `yii\filters\AccessRule` in order to be able to specify these separately
7 years ago
SilverFire - Dmitry Naumenko
ea2c475ea7
Moved `HTTP_AUTHORIZATION` header check to `\yii\web\Request`, added docs
...
Closes #13564
7 years ago
Robert Korulczyk
c78201899b
Fixes #13720 : Improve `yii\helpers\FormatConverter::convertDatePhpToIcu()` to handle escaped chars correctly
7 years ago
SilverFire - Dmitry Naumenko
0b2e79eac5
Fixed BasicHttpAuth to respect HTTP_AUTHORIZATION header
...
Closes #13564
7 years ago
Robert Korulczyk
f5c98f9664
Fixed tests for HHVM ( #14941 )
7 years ago
Marko Kruljac
22d453faac
Fixes #14134 : Fixed multiple `validateAttribute()` calls when `scenarios()` returns duplicate attributes
7 years ago
Robert Korulczyk
59b635c2a6
Fixes #14921 : Fixed bug with replacing numeric keys in `yii\helpers\Url::current()`
7 years ago
Alexander Makarov
f5591bb70e
Closes #13792 : added test verifying unused messages are not removed
7 years ago
Alexander Makarov
6bde69aa96
Fixes #14016 : Fixed empty messages marked as unused in PHP and PO sources when extracted with message command when `markUnused` is `false`
7 years ago
SilverFire - Dmitry Naumenko
b0148a5e8f
Added test to check issue #14274
7 years ago
Robert Korulczyk
a9f2827f87
Add tests with double dot for EmailValidator.
7 years ago
Alexander Makarov
b27b34df84
Removed yii\base\Object import
7 years ago
Alexander Makarov
24efeb812c
Added tests for Query Builder insert, update and delete ( #14911 )
7 years ago
Alexander Makarov
f82f2c00b3
Skip testing variadics on HHVM
7 years ago
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