Commit Graph

80 Commits

Author SHA1 Message Date
Alexander Kochetov
460b5fab06 Tests added 2014-05-22 20:15:55 +04:00
Carsten Brandt
15904951ef Merge PR #3406 branch 'exist-validator-enhancement' of https://github.com/creocoder/yii2
* 'exist-validator-enhancement' of https://github.com/creocoder/yii2:
  ExistValidator final refactoring. `allowArray` checking also added to `validateValue` method.
  New tests added
  New tests added
  ExistValidator::validateValue() fixed
  Tests excess dump removed
  ExistValidator bugfix
  Tests updated
  ExistValidator refactoring
  CHANGELOG updated
  `allowArray` introduced.
  CHANGELOG
  ExistValidator count logic fix
  Tests updated
  Tests updated
  Tests updated
  Refactoring
  Refactoring
  Improve `exist` validator to support array attributes

Conflicts:
	framework/CHANGELOG.md
2014-05-15 10:00:06 +02:00
Alexander Kochetov
520f5fa160 New tests added 2014-05-14 19:11:37 +04:00
Alexander Kochetov
55729a4cc0 New tests added 2014-05-14 19:09:55 +04:00
Alexander Kochetov
f457073d27 Tests excess dump removed 2014-05-14 13:39:31 +04:00
Alexander Kochetov
e791436819 Tests updated 2014-05-14 13:37:05 +04:00
Alexander Kochetov
087b7ca962 Tests updated 2014-05-09 18:55:49 +04:00
Alexander Kochetov
795b7d75e7 Tests updated 2014-05-09 18:08:40 +04:00
Alexander Kochetov
ba767206e8 Tests updated 2014-05-09 17:52:45 +04:00
Qiang Xue
e1c27788ba Added a test. 2014-05-09 08:42:17 -04:00
Carsten Brandt
83a63f2346 fixed wrong client validation issue in numbervalidator
fixes #3118
2014-04-23 01:29:53 +02:00
Qiang Xue
0e143338d7 Finished refactoring find() . 2014-04-07 16:29:12 -04:00
Alexander Makarov
75154d351d Refactored AR find 2014-04-07 09:43:03 +04:00
Zhandos Nuftiev
202e3ae0ca Fixed typo in FilterValidator for skipping array values. 2014-03-16 18:27:19 +05:00
SonicGD
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
Qiang Xue
08f6003c1d Fixed test break. 2014-03-14 23:55:38 -04:00
Alexander Pletnev
b9c0871218 tabs vs spaces 2014-03-11 23:16:04 +04:00
Zhandos
385ee5550a Update FileValidatorTest.php
fix tabs
2014-03-10 23:19:00 +05:00
Zhandos Nuftiev
b3b9bd353e fix isEmpty method for file validator. 2014-03-10 23:10:47 +05:00
Carsten Brandt
4384a96812 Merge pull request #2667 from AlexGx/tests-codestyle-fix
Tests codestyle fix
2014-03-09 03:06:39 +01:00
Luciano Baraglia
269d1303a9 Code style fixes 2014-03-08 20:47:04 -03:00
AlexGx
32d0768919 style fixes with phpcs:yii2 2014-03-08 14:55:58 +02:00
Alexander Makarov
4a201c7ad5 Removed unused variables 2014-02-07 13:39:35 +04:00
Qiang Xue
b64f618545 refactored file validator. 2014-02-01 09:15:40 -05:00
Qiang Xue
baa78bc213 fixed test break. 2014-01-31 18:33:28 -05:00
Qiang Xue
9aa006e5ea Removed implementation of Arrayable from yii\Object 2014-01-21 16:44:28 -05:00
Qiang Xue
a8068dfe5c fixed test break. 2014-01-11 10:54:43 -05:00
Qiang Xue
b23bade285 fixed test break. 2014-01-08 21:57:24 -05:00
Qiang Xue
35f8823249 fixed test break. 2014-01-08 21:34:20 -05:00
Qiang Xue
c67c929696 Fixed test break. 2014-01-08 21:23:12 -05:00
Qiang Xue
9649a6727a Renamed attributeName and className to targetAttribute and targetClass for UniqueValidator and ExistValidator.
Refactored UniqueValidator and ExistValidator.
2013-12-22 16:40:51 -05:00
Qiang Xue
252b6c9ef1 Fixes #797: Added support for validating multiple columns by UniqueValidator and ExistValidator 2013-12-22 11:30:59 -05:00
Qiang Xue
bce353bf3a fixed test break. 2013-12-06 14:32:59 -05:00
Qiang Xue
cb4a8c764c Refactored validators. 2013-12-06 14:19:17 -05:00
Qiang Xue
bb6b75e794 fixed exception check in test. 2013-11-27 23:07:15 -05:00
Carsten Brandt
45d92f1cef refactored emailvalidator test 2013-11-20 16:50:29 +01:00
Carsten Brandt
7b5b93efd2 fixed email validator test break 2013-11-20 16:46:04 +01:00
Carsten Brandt
8dab87be3d fixed EmailValidator IDN and full pattern support
also made everything conistent with client validation
2013-11-20 16:18:19 +01:00
slavcodev
9bf7f791b8 Fix test 2013-11-12 17:53:24 +02:00
slavcodev
35681c618b Fix test 2013-11-12 17:24:35 +02:00
slavcodev
b0b1c27c85 Fix phpDoc var tag format 2013-11-12 06:21:04 +02:00
Alexander Mohorev
51211898f8 Control statements based on the if and elseif constructs must have a single space before the opening parenthesis of the conditional and a single space after the closing parenthesis. 2013-10-28 23:51:48 +03:00
Qiang Xue
9f7ca5d222 Merge pull request #1051 from cebe/validator-message-format
Validator message format
2013-10-23 16:49:08 -07:00
Alexander Makarov
ee2af2661c Removed unneeded use statements 2013-10-24 03:12:25 +04:00
Alexander Makarov
c127171efb Fixes #1003: DateValidator returned true for invalid dates 2013-10-24 02:31:05 +04:00
Carsten Brandt
3631890cba fixed failing validator tests 2013-10-24 00:00:32 +02:00
Carsten Brandt
cfc57c20f0 Allow ITU message format in validator messages
fixes #991
2013-10-23 20:25:38 +02:00
Alexander Makarov
005c006b69 typo fix 2013-10-18 21:01:34 +04:00
Alexander Makarov
1f6a823073 Short array syntax 2013-10-18 20:52:38 +04:00
Carsten Brandt
f974e1a59f fixed validator test break 2013-10-15 04:43:52 +02:00