Евгений
233a2bea1c
strengthened simple validator tests to 100% coverage ( #20752 )
2026-03-01 09:43:24 -03:00
Евгений
26c21c4632
strengthened CompareValidatorTest coverage ( #20748 )
2026-03-01 07:55:33 -03:00
Евгений
204a698842
Strengthen RequiredValidatorTest coverage ( #20747 )
2026-03-01 06:35:07 -03:00
Евгений
19b39620dc
Added tests for SafeValidator and TrimValidator ( #20742 )
2026-03-01 04:55:15 -03:00
Евгений
151385632d
Strengthened EmailValidatorTest with RFC boundary condition tests and client-side validation coverage ( #20744 )
2026-02-28 16:34:03 +03:00
Maksim Spirkov
2f8e62d6b6
Fix codestyle in tests ( #20638 )
2025-10-27 10:56:00 +03:00
Wilmer Arambula
da20adc82a
Make test data providers static and declare array return types. ( #20621 )
2025-10-15 20:01:34 +03:00
Wilmer Arambula
c960f93dfe
Use ::class instead of ::className() in tests. ( #20612 )
2025-10-14 19:26:35 +03:00
Wilmer Arambula
d71f7309ae
Add void return to method in tests. ( #20602 )
2025-10-14 12:37:35 +03:00
Maksim Spirkov
909396074e
Fix codestyle in build and tests ( #20586 )
2025-10-10 23:04:09 +03:00
Maksim Spirkov
d8ba4c0468
Fix #19526 : Add the convertIniSizeToBytes method to BaseStringHelper
2025-09-30 01:27:40 +03:00
Максим Спирков
023a9c7c5b
Fix @var and @method tags syntax in build and tests folders ( #20396 )
2025-06-10 19:32:49 +03:00
Bizley
0d0f77529a
Fix #20231 : Fix regression introduced in #20167 in yii\validators\FileValidator
2024-07-26 19:06:32 +03:00
Bizley
e92466bbba
Fix #19855 : Fixed yii\validators\FileValidator to not limit some of its rules only to array attribute
2024-05-30 14:36:12 +03:00
Wilmer Arambula
e82127e91d
Update arrayTypedProperty declaration to use PHP 7.4 typed properties.
2024-03-21 08:08:16 -03:00
Wilmer Arambula
ce813e5060
Raise version min PHP 7.3.
2024-03-20 17:27:20 -03:00
Tobias Munk
e8c4a7e56e
added PHP version check, fixed #19925 ( #19936 )
...
* added PHP version check, fixed #19925
* added CHANGELOG line
* fixed typo
* fixed typo
---------
Co-authored-by: Alexander Makarov <sam@rmcreative.ru >
Co-authored-by: Bizley <pawel@positive.codes >
2023-09-04 10:09:49 +02:00
Bizley
581a7b2543
Fix #19735 : Fix yii\validators\NumberValidator to use programmable message for the value validation
2023-01-13 10:57:03 +04:00
Artem Manchenkov
5358724251
Fix #12636 : Fix CompareValidator successful state when compareAttribute has an error
2022-09-04 22:14:11 +03:00
Bizley
161526cd41
HTTPS everywhere ( #19503 )
2022-08-03 12:32:18 +03:00
Bizley
59f69fc9cd
Fix #19462 : Fix validator client options to encode HTML tags
2022-07-29 13:15:54 +03:00
Bizley
009961963c
Fix #19407 : Fix yii\validators\UniqueValidator and yii\validators\ExistValidator to respect skipOnError option for target attributes
2022-07-29 09:47:33 +03:00
Anton
06e5472753
Fix #19256 : Pass missed $view to user's callback in yii\validators\InlineValidator::clientValidateAttribute()
2022-04-08 01:20:28 +04:00
Long TRAN
7b8c29d874
Fix #19243 : Handle finfo_open for tar.xz as application/octet-stream on PHP 8.1
2022-02-19 23:45:20 +03:00
Alexander Makarov
13f27e4d92
Fix #18817 : Use paragonie/random_compat for random bytes and int generation
2021-08-09 10:25:36 +03:00
DrDeath72
be1b98b1df
Fix #18756 : Fix \yii\validators\ExistValidator::queryValueExists to validate against an array of unique values
2021-08-04 21:00:58 +03:00
Никита Медведев
f00e44fb6e
Fix #18569 : Add NumberValidator::$allowArray
2021-04-26 15:43:13 +03:00
Aaron Mueller
3593696b93
Fixing Email Validator to handle edge case where email address is valid but fails ascii conversion.
2021-03-31 11:50:24 -07:00
Bizley
cfe782b3f5
Fix #18544 : Fix yii\validators\NumberValidator to disallow values with whitespaces
2021-03-11 00:40:34 +03:00
Mohamed Abdel-Monem Hussein
b8e31c0d31
Fix #18460 : compareValue in CompareValidator can now take a closure returning a value
2021-02-25 13:01:38 +03:00
Andriy Borysov
8dc3131435
Add negative timezone in tests for date-only with non-UTC timezone ( #18432 )
2020-12-12 19:19:50 +03:00
Wilmer Arambula
8784331022
Fix #18385 : Add ci-oracle and fix tests
...
* Add github action for testing oci8 Oracle.
* Fix CommandTest::testQueryCache.
* Fix tests CommandTest::testBindParamsNonWhere.
* Fix test CommandTest::testInsert.
* Fix test CommanTest::testInsertExpression.
* Fix test CommandTest::testInsertSelectAlias.
* Fix test CommandTest::testBindParamValue.
* Fix tests CommandTest::testBatchInsertDataTypesLocale.
* Fix test CommandTest::testNoTablenameReplacement.
* Fix test CommandTest::testCreateTable.
* Fix test CommandTest::testsInsertQueryAsColumnValue.
* Fix tests CommandTest::testAlterTable.
* Fix test CommandTest::testCreateView.
* Fix test CommandTest::testTransaction.
* Fix test ConnectionTest::testTransactionShortcutCorrect.
* Fix test ConnectionTest::testTransactionShortcutCustom.
* Fix test ConnectionTest::testEnableQueryLog.
* Fix test QueryBuilder::testAddDropDefaultValue.
* Fix test QueryTest::testUnion.
* Fix test QueryTest::testExpressionInFrom.
* Fix test SchemaTest::testFindUniqueIndexes.
* Fix test QueryBuilderTest::testGetColumnType.
* Fix test ActiveRecordTest::testFind.
* Fix test ExistValidatorTest::testExpresionInAttributeColumnName.
* Fix test UniqueValidatorTest::testExpressionInAttributeColumnName.
* Fix ActiveRecordTest testCastValues(), testDefaultValues.
* Fix test UniqueValidatorTest::testValidateAttributeDefault.
* Fix test UniqueValidatorTest::testValidateEmptyAttributeInStringField.
* Fix test UniqueValidatorTest::testValidateEmptyAttributeInIntField.
* Fix test ActiveRecordTest::testBit.
* Fix test ActiveRecordTest::testBooleanAttribute.
* Fix test ActiveRecordTest::testJoinWithAlias.
* Fix test SchemaTest::testColumnSchema.
* Fix test CommandTest:: testBatchInsertSQL.
* Skip CommandTest::testColumnCase.
* Fix test ConnectionTest::testQuoteValue.
* Should be fixed tests conditionsProvider in QueryBuilderTest.
* Fix ActiveRecordTest.php
* Fix test UniqueValidatorTest.
* Fix test QueryBuilderTest::testUpsert.
* Skip SchemaTest::testCompositeFK.
2020-11-23 23:12:01 +03:00
Bizley
840083724e
Fix #18351 : Added option to change default timezone for parsing formats without time part in yii\validators\DateValidator
2020-10-31 15:59:20 +03:00
DarkDef
f212925242
Fix #18239 : Fix support of no-extension files for FileValidator::validateExtension()
2020-08-19 20:32:15 +03:00
Bizley
d62590807d
Fix #18051 : Fix using EachValidator with custom validation function
2020-07-06 16:18:03 +03:00
DarkDef
f944e1f039
Fix #18094 : Support for composite file extension validation
2020-07-03 19:06:49 +03:00
Alexander Makarov
385fe13d66
Revert #18102 since renaming is technically problematic ( #18109 )
2020-06-17 13:40:17 +03:00
Brandon Kelly
eb956e9c6b
primary/replica in a definitely non-breaking way ( #18106 )
2020-06-16 11:33:27 +03:00
trombipeti
b642a384fa
Fix #18096 : Fix InlineValidator with anonymous inline function not working well from EachValidator
2020-06-15 10:14:57 +03:00
Brandon Kelly
472600ee3f
Fix #18102 : Use “primary”/“replica” terminology instead of “master”/“slave”
2020-06-14 00:12:10 +03:00
Bizley
2a73a4ae3a
Fix #18051 : Fix missing support for custom validation method in EachValidator
2020-05-23 17:37:23 +03:00
Maksym Storchak
c32811887a
Fix #18011 : Added attribute labels support for DynamicModel, fixed EachValidator to pass the attribute label to the underlying DynamicModel
2020-05-02 02:14:03 +03:00
ricardomm85
355ca1562d
Fix #17810 : Fix EachValidator crashing with uninitialized typed properties
2020-04-04 15:03:09 +03:00
Adam Hayward
31e3698ab9
Fix #17827 : Add StringValidator::$strict that can be turned off to allow any scalars
...
Co-authored-by: Alexander Makarov <sam@rmcreative.ru >
2020-03-24 16:51:38 +03:00
Somogyi Márton
b388aec1a2
IpValidator test fix ( #17658 )
2019-11-07 19:36:39 +02:00
Somogyi Márton
5e38f47275
Fix #16305 : Fix FileValidator mime-type validation failure because of case sensitivity
2019-08-27 18:59:26 +03:00
Alexander Kartavenko
136705c92b
MSSQL: fix tests ( #17431 )
2019-07-13 02:27:47 +03:00
Alexander Kartavenko
56f639358c
Add MSSQL tests ( #17410 )
2019-07-04 15:51:01 +03:00
Garth
9dcf65e304
Fix #17389 : Fixed UniqueValidator to work with Active Record having joinWith() in its find()
2019-07-02 20:50:53 +03:00
Alexander Kartavenko
2d333b2301
Fixes #17382 : Added \yii\validators\DateValidator::$strictDateFormat to enable strict validation
2019-06-25 15:24:32 +07:00