Elvira Sheina
d39c491022
Fix BC breaking #13475 ( #13478 )
8 years ago
Elvira Sheina
b82caa97e8
Fixes #7820 : Add `or` relation for `targetAttribute` in `yii\validators\UniqueValidator`
8 years ago
Elvira Sheina
bfba0aa711
Refactor validateAttribute method in UniqueValidator ( #13202 )
...
* Refactor validateAttribute method in UniqueValidator
Extract prepareParams and prepareQuery from validateAttribute,
so they can be tested separately.
* Added issue number to changelog
* Eliminated unneeded variable
* Renamed methods and parameters, update PHPDocs
8 years ago
yamaha252
22b2a78a0a
Added test for unique validator with empty values
...
close #7007
8 years ago
Robert Korulczyk
4fdfbc2739
Add tests for custom message for `UniqueValidator`
8 years ago
Carsten Brandt
d2dd232b6f
message improvement and test for #11323
8 years ago
Carsten Brandt
86f17c8dad
added tests classes for db related tests
8 years ago
githubjeka
dabbb81e07
Added test for check the invalid attribute
9 years ago
githubjeka
3ebe092828
Reproduce bug
9 years ago
SilverFire - Dmitry Naumenko
6eb9830d64
UniqueValidatorTest, CHANGELOG - fixed spelling
9 years ago
githubjeka
a215013f68
Missing phpDoc properties has been added
9 years ago
githubjeka
0fc744598d
optimized imports & add phpDoc
9 years ago
githubjeka
fd6e33ccf3
Semantics of the test has been improved
9 years ago
githubjeka
e5e67ebed5
Add testValidateTargetClass for reproduce the bug.
...
When IDs targetClass & model(not new) is same then unique validator passed
9 years ago
Alexander Makarov
6949992246
Simplified tests directory structure a bit
10 years ago
Carsten Brandt
83a63f2346
fixed wrong client validation issue in numbervalidator
...
fixes #3118
11 years ago
Qiang Xue
0e143338d7
Finished refactoring find() .
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
Qiang Xue
9649a6727a
Renamed `attributeName` and `className` to `targetAttribute` and `targetClass` for `UniqueValidator` and `ExistValidator`.
...
Refactored UniqueValidator and ExistValidator.
11 years ago
Qiang Xue
252b6c9ef1
Fixes #797 : Added support for validating multiple columns by `UniqueValidator` and `ExistValidator`
11 years ago
Qiang Xue
bb6b75e794
fixed exception check in test.
11 years ago
Alexander Makarov
ee2af2661c
Removed unneeded use statements
11 years ago
Carsten Brandt
3631890cba
fixed failing validator tests
11 years ago
Alexander Makarov
1f6a823073
Short array syntax
11 years ago
Carsten Brandt
f974e1a59f
fixed validator test break
11 years ago
Alexander Makarov
8c1c3c59d9
Better AR connection init in tests
11 years ago
Suralc
06682d0ba9
coverage improvements
11 years ago
Suralc
c189e5ad3f
UniqueValidator test.
11 years ago