Carsten Brandt
d2dd232b6f
message improvement and test for #11323
2016-07-06 14:27:50 +02:00
Sam Mousa
b30b5a99ea
Fixes #11672 : Fixed yii\validators\NumberValidator erroring when value is an object without __toString() method
2016-06-23 23:32:25 +03:00
Carsten Brandt
86f17c8dad
added tests classes for db related tests
2016-06-20 23:07:07 +02:00
Sergey Smirnov
1ed6fc09f6
#10825 Fixed EachValidator does not respect skipOnEmpty when using model ( #11507 )
2016-05-11 14:11:32 +02:00
Carsten Brandt
00d506c398
completed implementation for #7177
...
added TYPE_TIME and default values for format to be chosen from
corresponding formatter variable
fixes #7177
close #10778
2016-04-26 21:56:40 +02:00
Robbert Jan
bb0ef88860
Enhancement for DateValidator ( #7177 , #10165 )
...
Added parameter to define if checking for 'date' or 'dateTime'
and updated parseDateValueIntl($value, $format) to facilitate
this validation based on defined type.
Added unit tests to for validating dateTime values when using short format validation.
close #10778
2016-04-26 19:22:41 +02:00
Klimov Paul
2d5a0bf5ae
EachValidator::validateAttribute() fixed to restore original value on error
2016-04-12 12:00:33 +03:00
Klimov Paul
205f16811a
Fixed yii\validators\EachValidator does not invoke validateAttribute() method of the embedded validator
2016-04-12 11:14:57 +03:00
Alexander Makarov
f312163258
Fixes #11220 : NumberValidator now handles objects properly
2016-04-06 00:53:10 +03:00
githubjeka
8e1ec62191
update BooleanValidator
2016-03-29 16:38:17 +03:00
Dmitry Naumenko
d85e0eb80d
Merge pull request #11150 from yiisoft/11139-each-validator-attribute-value
...
EachValidator injects specific attribute value in error message
2016-03-21 12:35:43 +02:00
LAV45
6c2545c807
Added SVG image and SVG mimeType test to FileValidatorTest
2016-03-21 08:34:24 +02:00
SilverFire - Dmitry Naumenko
a0f9bf2893
Fixed yii\web\UploadedFile::getBaseName() to be multibyte-safe, added test
2016-03-20 23:45:08 +02:00
SilverFire - Dmitry Naumenko
a0e614eb20
yii\validators\EachValidator injects specific attribute value in error message parameters
...
Closes #11139
2016-03-20 16:34:42 +02:00
Klimov Paul
779b1e90ce
yii\validators\DateValidator skip validation for timestampAttribute, if it is already in correct format
2016-02-26 15:02:22 +02:00
SilverFire - Dmitry Naumenko
66c6268e5f
FileValidator: updated guide-ru,en, PHP; updated tests
2016-02-24 09:05:29 +02:00
kirSeNN
a4c68b5278
#5469 added mimetype mask validation feature
2016-02-24 00:40:34 +02:00
Klimov Paul
d22a3a0a07
Fixed yii\validators\EachValidator does not respect skipOnEmpty rule parameter
2016-02-12 13:33:36 +02:00
SilverFire - Dmitry Naumenko
d12af259e0
Fixed UrlValidator pattern to improve matching
2016-02-05 14:47:12 +02:00
SilverFire - Dmitry Naumenko
08ce8c0718
EmailValidatorTest - spelling typo fixed
2016-02-02 09:22:15 +02:00
SilverFire - Dmitry Naumenko
4c31c26628
EmailValidator - the name of the mailbox is no longer limited with the length
2016-02-01 23:49:51 +02:00
Alexander Makarov
c79ebf49f4
Merge pull request #10639 from githubjeka/test-uniqvalid
...
UniqueValidatorTest: Added test for check the invalid attribute
2016-01-22 03:14:28 +03:00
githubjeka
dabbb81e07
Added test for check the invalid attribute
2016-01-21 21:23:51 +03:00
githubjeka
3ebe092828
Reproduce bug
2016-01-21 19:35:38 +03:00
SilverFire - Dmitry Naumenko
6eb9830d64
UniqueValidatorTest, CHANGELOG - fixed spelling
2016-01-19 00:17:56 +02:00
SilverFire - Dmitry Naumenko
1e48e020cb
Merge branch '10263' of https://github.com/githubjeka/yii2 into githubjeka-10263
2016-01-19 00:04:20 +02:00
SilverFire - Dmitry Naumenko
2be8a716b1
#8995 , #8996 - added unit test, changelog line
2015-12-05 21:23:33 +02:00
githubjeka
a215013f68
Missing phpDoc properties has been added
2015-11-27 19:48:20 +03:00
githubjeka
0fc744598d
optimized imports & add phpDoc
2015-11-27 19:43:29 +03:00
githubjeka
fd6e33ccf3
Semantics of the test has been improved
2015-11-27 19:32:03 +03:00
githubjeka
e5e67ebed5
Add testValidateTargetClass for reproduce the bug.
...
When IDs targetClass & model(not new) is same then unique validator passed
2015-11-27 00:04:49 +03:00
Sam Mousa
22d9997281
Implemented support of traversable objects in RangeValidator::ranges, added ArrayHelper::in() and ArrayHelper::subset()
2015-11-18 16:41:56 +02:00
SilverFire - Dima Naumenko
d7bb1be296
EmailValidator - specified encoding for mb_strlen
2015-11-15 19:39:50 +02:00
SilverFire - Dima Naumenko
bf6b50f58e
#10142 Fixed EmailValidator to check email length properly
2015-11-14 00:39:12 +02:00
SilverFire - Dima Naumenko
6f6e54686b
Skip IpValidatorTest fully, when IPv6 support is not enabled
2015-11-10 14:44:46 +02:00
SilverFire - Dima Naumenko
ebee1d04ce
ComposerValidatorTest - Fixed PHP7 error
2015-11-10 12:41:48 +02:00
Sidney Lins (slinstj, former sidtj)
c33574bc0a
Fixes #7566 : Improved \yii\validators\CompareValidator default messages
2015-11-05 22:05:50 +03:00
Alexander Makarov
5242765257
Fixes #3506 : Added \yii\validators\IpValidator to perform validation of IP addresses and subnets
2015-10-22 14:21:31 +03:00
Lorenzo Milesi
a6fc02345e
FileValidator->getSizeLimit: check also php's post_max_size
...
- return the lowerest of `post_max_size` or `upload_max_filesize`
- Raised warning for misconfigured PHP
close #8373
2015-08-02 23:37:46 +02:00
Carsten Brandt
f37c6ddd64
well, just drop this...
...
this test does not help much anyway. it is still tested for false in strict mode.
2015-07-03 17:44:02 +02:00
Carsten Brandt
d8bbe2f693
fixed BC compatibility test break for php7
2015-07-03 17:38:40 +02:00
Carsten Brandt
9cc0e5d89d
even more 32bit friendly test
...
issue #8584
2015-06-06 02:39:19 +02:00
Carsten Brandt
8e44674e7b
fixed another test to work on 32bit
...
issue #8584
2015-06-05 19:01:45 +02:00
Carsten Brandt
ab9326dd26
fixed test for 32bit systems
...
fixes #8584
2015-06-05 18:58:09 +02:00
Carsten Brandt
8eaacd7320
added comment to datevalidator test
...
issue #8584
2015-05-28 12:05:39 +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
Alexander Makarov
6949992246
Simplified tests directory structure a bit
2015-04-16 12:10:01 +03:00