Commit Graph

140 Commits

Author SHA1 Message Date
DarkDef
f212925242 Fix #18239: Fix support of no-extension files for FileValidator::validateExtension() 2020-08-19 20:32:15 +03:00
Bizley
d62590807d Fix #18051: Fix using EachValidator with custom validation function 2020-07-06 16:18:03 +03:00
DarkDef
f944e1f039 Fix #18094: Support for composite file extension validation 2020-07-03 19:06:49 +03:00
Alexander Makarov
385fe13d66 Revert #18102 since renaming is technically problematic (#18109) 2020-06-17 13:40:17 +03:00
Brandon Kelly
eb956e9c6b primary/replica in a definitely non-breaking way (#18106) 2020-06-16 11:33:27 +03:00
trombipeti
b642a384fa Fix #18096: Fix InlineValidator with anonymous inline function not working well from EachValidator 2020-06-15 10:14:57 +03:00
Brandon Kelly
472600ee3f Fix #18102: Use “primary”/“replica” terminology instead of “master”/“slave” 2020-06-14 00:12:10 +03:00
Bizley
2a73a4ae3a Fix #18051: Fix missing support for custom validation method in EachValidator 2020-05-23 17:37:23 +03:00
Maksym Storchak
c32811887a Fix #18011: Added attribute labels support for DynamicModel, fixed EachValidator to pass the attribute label to the underlying DynamicModel 2020-05-02 02:14:03 +03:00
ricardomm85
355ca1562d Fix #17810: Fix EachValidator crashing with uninitialized typed properties 2020-04-04 15:03:09 +03:00
Adam Hayward
31e3698ab9 Fix #17827: Add StringValidator::$strict that can be turned off to allow any scalars
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2020-03-24 16:51:38 +03:00
Somogyi Márton
b388aec1a2 IpValidator test fix (#17658) 2019-11-07 19:36:39 +02:00
Somogyi Márton
5e38f47275 Fix #16305: Fix FileValidator mime-type validation failure because of case sensitivity 2019-08-27 18:59:26 +03:00
Alexander Kartavenko
136705c92b MSSQL: fix tests (#17431) 2019-07-13 02:27:47 +03:00
Alexander Kartavenko
56f639358c Add MSSQL tests (#17410) 2019-07-04 15:51:01 +03:00
Garth
9dcf65e304 Fix #17389: Fixed UniqueValidator to work with Active Record having joinWith() in its find() 2019-07-02 20:50:53 +03:00
Alexander Kartavenko
2d333b2301 Fixes #17382: Added \yii\validators\DateValidator::$strictDateFormat to enable strict validation 2019-06-25 15:24:32 +07:00
Basil
e1f6761dfd Fixes #17233: Fixed bug with integer model attribute names in Validator class 2019-05-15 18:03:57 +03:00
Pavel Ivanov
92c66758de Added tests for DateValidator when no time is specified for 'format' (#17018)
Related issues:
* #10737
* #14299
* #14795
2019-01-04 18:45:49 -05:00
Pavel Ivanov
4584487126 Fixes DateValidatorTest for ICU 55.1 (#17013)
I have installed ICU of version `55.1` and tests fail on it. That's because 'short' datetime format has been changed earlier - starting with version 55.1

See for example Symfony changes for ICU 55: 4f224ef4ab (diff-564fc4b01393077657880495f2be7b17R54)
2019-01-04 05:38:10 -05:00
Anna Borzenko
d7ffda020b Fixes #16903: Fixed 'yii\validators\NumberValidator' method 'isNotNumber' returns false for true/false value 2018-11-23 12:55:07 +03:00
bscheshirwork
68e5a9b315 Fix typo (#16443) [skip ci] 2018-06-26 19:05:49 +03:00
Pavel Ivanov
6adc81da4c Fix master travis builds (#15971) 2018-03-25 19:11:07 +03:00
SilverFire - Dmitry Naumenko
6e30577abc Added ArrayAccess object in EachValidator
Fixes #15760
2018-02-24 11:59:32 +02:00
Elvira Sheina
23b5fa4391 Fix ExistValidator with targetRelation ignores filter (#15692) 2018-02-20 20:07:55 +05:00
SilverFire - Dmitry Naumenko
a4b6b853b6 Fixed DateValidator to respect time when format is php:U
Fixes #15628
2018-02-18 09:55:43 +02:00
SilverFire - Dmitry Naumenko
7bd694dccb Enhanced tests 2018-02-16 00:06:59 +02:00
rossoneri
63ffae028e Fixes #14254: add an option to specify whether validator is forced to always use master DB for yii\validators\UniqueValidator and yii\validators\ExistValidator 2018-02-15 02:12:54 +03:00
Elvira Sheina
a18ee838fd Fixes #8092: ExistValidator for relations 2018-02-13 01:12:05 +03:00
Elvira Sheina
eb57d4191c Fixes #15553: Fixed yii\validators\NumberValidator incorrectly validate resource 2018-01-25 14:28:41 +03:00
Tobias Munk
248415422f Fixed #15140 DateValidator tests for specific ICU versions (#15518) 2018-01-19 21:35:33 +03:00
Nikolay Oleynikov
07fc770730 Improve email validator test coverage (#15504) 2018-01-16 11:05:06 +03:00
Nikolay Oleynikov
5ce0e06cd7 Refactor email validator tests (#15503) 2018-01-16 11:04:29 +03:00
Гордиенко Владислав Юрьевич
72b69e359a Fixes #15417: Added yii\validators\FileValidator::$minFiles 2018-01-08 02:12:27 +04:00
Laszlo
0bec2b462c Fixes #14484: Fixed yii\validators\UniqueValidator for target classes with a default scope 2017-12-18 10:41:13 +03:00
Alexander Makarov
1e00a050d7 Fixes #15322: Fixed PHP 7.2 compatibility of FileHelper::getExtensionsByMimeType() 2017-12-10 16:31:42 +03:00
bscheshirwork
a6b01a7d1e Сhanges in test case naming (#15228) 2017-11-27 23:34:10 +03:00
Carsten Brandt
d50822dfa5 test case for #15172 2017-11-17 22:35:35 +01:00
Dmitry Dorogin
bce830a8b0 Fixed tests for PHP 7.2 #15154 (#15171) 2017-11-17 10:31:03 +03:00
Elvira Sheina
13cd7d7ee0 Fixes #6588: Fixed changing array keys after validation of multiple files in yii\validators\FileValidator 2017-11-01 12:26:25 +03:00
Alexander Makarov
fb23b0d0ea Code style fixes 2017-11-01 02:43:02 +03:00
SilverFire - Dmitry Naumenko
336404e0b9 PHP7.2RC5: enabled INTL tests, continue disabling some cases in FileValidator 2017-10-26 12:29:48 +03:00
Dmitry Naumenko
64d8af61a6 Fixes for PHP 7.2 compatibility (#14959) 2017-10-19 01:54:40 +03:00
Robert Korulczyk
a9f2827f87 Add tests with double dot for EmailValidator. 2017-10-06 10:05:56 +02:00
SilverFire - Dmitry Naumenko
40ae296b82 Fixed broken test 2017-09-11 12:49:46 +03:00
SilverFire - Dmitry Naumenko
f9b0090a7d Added more tests for FileValidator to make sure it works as should
Closes #14778
2017-09-09 16:13:10 +03:00
Carsten Brandt
36b535c26b Fixes #13254: Made yii\helpers\StringHelper and yii\validators\StringValidator independent of Yii::$app instance 2017-09-07 22:32:07 +03:00
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".
2017-08-21 11:19:35 +02:00
Robert Korulczyk
1501c659ac Add empty lines before return statements. (#14682) [skip ci] 2017-08-21 01:58:49 +03:00
Robert Korulczyk
0c0942d6e2 Enable phpdoc_add_missing_param_annotation rule in php-cs-fixer config. (#14681) [skip ci] 2017-08-21 01:57:23 +03:00