Pavel Ivanov
92c66758de
Added tests for DateValidator when no time is specified for 'format' ( #17018 )
...
Related issues:
* #10737
* #14299
* #14795
6 years ago
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)
6 years ago
Anna Borzenko
d7ffda020b
Fixes #16903 : Fixed 'yii\validators\NumberValidator' method 'isNotNumber' returns false for true/false value
6 years ago
cuileon
489dd119a5
merge from yiisoft/yii2
6 years ago
bscheshirwork
68e5a9b315
Fix typo ( #16443 ) [skip ci]
6 years ago
Pavel Ivanov
6adc81da4c
Fix master travis builds ( #15971 )
7 years ago
SilverFire - Dmitry Naumenko
6e30577abc
Added ArrayAccess object in EachValidator
...
Fixes #15760
7 years ago
Elvira Sheina
23b5fa4391
Fix ExistValidator with targetRelation ignores filter ( #15692 )
7 years ago
SilverFire - Dmitry Naumenko
a4b6b853b6
Fixed DateValidator to respect time when `format` is `php:U`
...
Fixes #15628
7 years ago
SilverFire - Dmitry Naumenko
7bd694dccb
Enhanced tests
7 years ago
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`
7 years ago
Elvira Sheina
a18ee838fd
Fixes #8092 : ExistValidator for relations
7 years ago
Elvira Sheina
eb57d4191c
Fixes #15553 : Fixed `yii\validators\NumberValidator` incorrectly validate resource
7 years ago
Tobias Munk
248415422f
Fixed #15140 DateValidator tests for specific ICU versions ( #15518 )
7 years ago
Nikolay Oleynikov
07fc770730
Improve email validator test coverage ( #15504 )
7 years ago
Nikolay Oleynikov
5ce0e06cd7
Refactor email validator tests ( #15503 )
7 years ago
Гордиенко Владислав Юрьевич
72b69e359a
Fixes #15417 : Added `yii\validators\FileValidator::$minFiles`
7 years ago
Laszlo
0bec2b462c
Fixes #14484 : Fixed `yii\validators\UniqueValidator` for target classes with a default scope
7 years ago
Alexander Makarov
1e00a050d7
Fixes #15322 : Fixed PHP 7.2 compatibility of `FileHelper::getExtensionsByMimeType()`
7 years ago
bscheshirwork
a6b01a7d1e
Сhanges in test case naming ( #15228 )
7 years ago
Carsten Brandt
d50822dfa5
test case for #15172
7 years ago
Dmitry Dorogin
bce830a8b0
Fixed tests for PHP 7.2 #15154 ( #15171 )
7 years ago
Elvira Sheina
13cd7d7ee0
Fixes #6588 : Fixed changing array keys after validation of multiple files in `yii\validators\FileValidator`
7 years ago
Alexander Makarov
fb23b0d0ea
Code style fixes
7 years ago
SilverFire - Dmitry Naumenko
336404e0b9
PHP7.2RC5: enabled INTL tests, continue disabling some cases in FileValidator
7 years ago
Dmitry Naumenko
64d8af61a6
Fixes for PHP 7.2 compatibility ( #14959 )
7 years ago
Robert Korulczyk
a9f2827f87
Add tests with double dot for EmailValidator.
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
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
Dmitry Dorogin
8ae2223c6a
Fixes #14370 : Fixed creating built-in validator in model with same function name
7 years ago
Carsten Brandt
aba0b4a59a
added test that fails #14413
...
See #13979
close #14413
7 years ago
Robert Korulczyk
d2781cd232
Added configuration for headers in PHP files generated by `message/extract` command ( #14417 )
7 years ago
Alexander Makarov
d4c15c36d0
Fixes #14304 : Fixed `yii\validators\UniqueValidator` and `yii\validators\ExistValidator` to skip prefixes in case expressions are used
7 years ago
Robert Korulczyk
ba0ab403b5
Added php-cs-fixer coding standards validation to Travis CI ( #14100 )
...
* php-cs-fixer: PSR2 rule.
* php-cs-fixer: PSR2 rule - fix views.
* Travis setup refactoring.
* Add php-cs-fixer to travis cs tests.
* Fix tests on hhvm-3.12
* improve travis config
* composer update
* revert composer update
* improve travis config
* Fix CS.
* Extract config to separate classes.
* Extract config to separate classes.
* Add file header.
* Force short array syntax.
* binary_operator_spaces fixer
* Fix broken tests
* cast_spaces fixer
* concat_space fixer
* dir_constant fixer
* ereg_to_preg fixer
* function_typehint_space fixer
* hash_to_slash_comment fixer
* is_null fixer
* linebreak_after_opening_tag fixer
* lowercase_cast fixer
* magic_constant_casing fixer
* modernize_types_casting fixer
* native_function_casing fixer
* new_with_braces fixer
* no_alias_functions fixer
* no_blank_lines_after_class_opening fixer
* no_blank_lines_after_phpdoc fixer
* no_empty_comment fixer
* no_empty_phpdoc fixer
* no_empty_statement fixer
* no_extra_consecutive_blank_lines fixer
* no_leading_import_slash fixer
* no_leading_namespace_whitespace fixer
* no_mixed_echo_print fixer
* no_multiline_whitespace_around_double_arrow fixer
* no_multiline_whitespace_before_semicolons fixer
* no_php4_constructor fixer
* no_short_bool_cast fixer
* no_singleline_whitespace_before_semicolons fixer
* no_spaces_around_offset fixer
* no_trailing_comma_in_list_call fixer
* no_trailing_comma_in_singleline_array fixer
* no_unneeded_control_parentheses fixer
* no_unused_imports fixer
* no_useless_return fixer
* no_whitespace_before_comma_in_array fixer
* no_whitespace_in_blank_line fixer
* not_operator_with_successor_space fixer
* object_operator_without_whitespace fixer
* ordered_imports fixer
* php_unit_construct fixer
* php_unit_dedicate_assert fixer
* php_unit_fqcn_annotation fixer
* phpdoc_indent fixer
* phpdoc_no_access fixer
* phpdoc_no_empty_return fixer
* phpdoc_no_package fixer
* phpdoc_no_useless_inheritdoc fixer
* Fix broken tests
* phpdoc_return_self_reference fixer
* phpdoc_single_line_var_spacing fixer
* phpdoc_single_line_var_spacing fixer
* phpdoc_to_comment fixer
* phpdoc_trim fixer
* phpdoc_var_without_name fixer
* psr4 fixer
* self_accessor fixer
* short_scalar_cast fixer
* single_blank_line_before_namespace fixer
* single_quote fixer
* standardize_not_equals fixer
* ternary_operator_spaces fixer
* trailing_comma_in_multiline_array fixer
* trim_array_spaces fixer
* protected_to_private fixer
* unary_operator_spaces fixer
* whitespace_after_comma_in_array fixer
* `parent::setRules()` -> `$this->setRules()`
* blank_line_after_opening_tag fixer
* Update finder config.
* Revert changes for YiiRequirementChecker.
* Fix array formatting.
* Add missing import.
* Fix CS for new code merged from master.
* Fix some indentation issues.
7 years ago
Paul Klimov
40e5702b6b
Fixes #5108 `DateValidator` resets `$timestampAttribute` value on empty attribute ( #14242 )
...
* `yii\validators\DateValidator` now resets `$timestampAttribute` value on empty validated attribute value
* array-value test at `DateValidatorTest` restored
7 years ago
Alexander Makarov
b151b1cdb2
Fixes #14150
7 years ago
Carsten Brandt
5c72047426
Fixed ambiguous column name in SELECT in UniqueValidator
...
fixes #14042
7 years ago
Alexander Makarov
23cc4bf4fe
Further changes for unique and exist validators
...
- Combined methods for getting names and aliases of from tables
- Normalized names and aliases
- Added MSSQL syntax
- Added support for spaces in aliases and table names
7 years ago
Robert Korulczyk
31e321b9b2
Remove unused imports. ( #14096 )
8 years ago
Carsten Brandt
d786b78f25
Helper independent ( #14050 )
...
* Made sure most helpers are independent of Yii::$app
* Made sure most validators are independent of Yii::$app
8 years ago
Paul Klimov
3598f8180c
Fixes #13087 : Fixed getting active validators for safe attribute
8 years ago
Mikk Tendermann
59d3292399
[IpValidator] disable ipv6 checks ( #13984 )
...
* disable ipv6 checks
* remove empty line
* updated CHANGELOG.md
8 years ago
Klimov Paul
dee88787fc
compatibility with PHPUnit 6.x added
8 years ago
vladis84
3c1f3e20cf
Fixes #13704 : Fixed `yii\validators\UniqueValidator` to prefix attribute name with model's database table name
8 years ago
Alexander Makarov
3f8e8a89eb
Used more specific unit test assertions in framework tests
8 years ago
gagatust
6397791513
Fixed whitespaces to match code style [skip ci]
8 years ago