7bd694dccb
Enhanced tests
2018-02-16 00:06:59 +02:00
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
0bec2b462c
Fixes #14484 : Fixed yii\validators\UniqueValidator
for target classes with a default scope
2017-12-18 10:41:13 +03:00
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
d4c15c36d0
Fixes #14304 : Fixed yii\validators\UniqueValidator
and yii\validators\ExistValidator
to skip prefixes in case expressions are used
2017-06-27 00:02:47 +03:00
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.
2017-06-12 12:25:45 +03:00
d331b72be6
Merge branch 'master' into unique-validator-fix
2017-05-12 00:45:55 +03:00
5c72047426
Fixed ambiguous column name in SELECT in UniqueValidator
...
fixes #14042
2017-05-10 12:02:48 +03:00
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
2017-05-10 00:35:40 +03:00
d786b78f25
Helper independent ( #14050 )
...
* Made sure most helpers are independent of Yii::$app
* Made sure most validators are independent of Yii::$app
2017-04-26 09:49:44 +02:00
dee88787fc
compatibility with PHPUnit 6.x added
2017-04-13 14:49:43 +03:00
3c1f3e20cf
Fixes #13704 : Fixed yii\validators\UniqueValidator
to prefix attribute name with model's database table name
2017-03-16 17:42:31 +03:00
6397791513
Fixed whitespaces to match code style [skip ci]
2017-03-14 09:42:13 +03:00
d39c491022
Fix BC breaking #13475 ( #13478 )
2017-01-31 11:56:46 +03:00
b82caa97e8
Fixes #7820 : Add or
relation for targetAttribute
in yii\validators\UniqueValidator
2017-01-22 19:45:18 +03:00
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
2016-12-15 12:23:16 +01:00
22b2a78a0a
Added test for unique validator with empty values
...
close #7007
2016-11-27 02:37:12 +01:00
4fdfbc2739
Add tests for custom message for UniqueValidator
2016-08-24 22:59:58 +02:00
d2dd232b6f
message improvement and test for #11323
2016-07-06 14:27:50 +02:00
86f17c8dad
added tests classes for db related tests
2016-06-20 23:07:07 +02:00
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
dabbb81e07
Added test for check the invalid attribute
2016-01-21 21:23:51 +03:00
3ebe092828
Reproduce bug
2016-01-21 19:35:38 +03:00
6eb9830d64
UniqueValidatorTest, CHANGELOG - fixed spelling
2016-01-19 00:17:56 +02:00
a215013f68
Missing phpDoc properties has been added
2015-11-27 19:48:20 +03:00
0fc744598d
optimized imports & add phpDoc
2015-11-27 19:43:29 +03:00
fd6e33ccf3
Semantics of the test has been improved
2015-11-27 19:32:03 +03:00
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
6949992246
Simplified tests directory structure a bit
2015-04-16 12:10:01 +03:00