3463 Commits

Author SHA1 Message Date
26032ad686 refactor findBetween method and add other tests 2023-10-30 13:50:08 +03:30
caa2029ec7 implement findBetween method to StringHelper 2023-10-28 22:20:37 +03:30
fcd9e0a72a Merge pull request #20049 from terabytesoftw/add-tests-boolean-pgsql
Add test for boolean type `PostgreSQL`.
2023-10-28 11:09:12 +02:00
af1858c769 add test coverage for error handler convertExceptionToString and convertExceptionToArray methods (#20051) 2023-10-27 21:56:43 +03:00
bd452da4d2 Add tests for uncovered lines in DbDependency (#20052) 2023-10-27 21:56:06 +03:00
a2265ce990 Merge pull request #20046 from terabytesoftw/add-tests-boolean-sqlite
Add test for boolean type `SQLite`.
2023-10-27 09:02:36 +02:00
f3c1d0cba7 Add test for boolean type PostgreSQL. 2023-10-26 13:07:23 -03:00
6e6174deaa Add test for boolean type SQLite. 2023-10-26 12:59:15 -03:00
f0628dfab5 Fix error typo. 2023-10-25 14:02:42 -03:00
045996ed4b Merge branch 'master' into fix-type-boolean-mysql 2023-10-25 13:54:28 -03:00
9d3c71d6a7 Fix #20040: Fix type boolean in MSSQL 2023-10-25 19:47:46 +03:00
e2773e4524 Fix #20032: Added mask method for string masking with multibyte support 2023-10-25 19:47:03 +03:00
18ed620e78 Update tests. 2023-10-25 08:57:40 -03:00
4b7669cf08 Fix boolean type MYSQL. 2023-10-25 08:37:18 -03:00
f58eb362ca Remove YII_ENV. 2023-10-21 08:53:15 -03:00
b7488185ba Merge branch 'master' into yii-serve-fix 2023-10-20 13:16:06 -03:00
f8b49ce511 Fix getMockbuilder className(). 2023-10-20 12:59:20 -03:00
c56bccd913 Fix error typo. 2023-10-20 12:50:20 -03:00
e726284a48 Fix php 5. 2023-10-20 12:45:51 -03:00
ecc6c6121e Use Mock tests, after checking the real test. 2023-10-20 12:42:19 -03:00
5eeb12f275 Fix #19060: Fix yii\widgets\Menu bug when using Closure for active item and adding additional tests in tests\framework\widgets\MenuTest 2023-10-20 16:49:25 +03:00
70a7282fec Fix yii server and add tests. 2023-10-20 10:45:21 -03:00
ce13f0f35a refactor: cleanup SerializerTest 2023-10-20 16:22:19 +08:00
ace4a5b888 fix: separate test Head Serialize DataProvider 2023-10-20 10:47:17 +08:00
344b0aecf3 core: add collectionEnvelope unit test 2023-10-18 16:36:43 +08:00
4f2a7c5f03 Merge branch 'bugfix/20002-Superfluous_query_on_HEAD_request_in_serializer' of https://github.com/xicond/yii2 into bugfix/20002-Superfluous_query_on_HEAD_request_in_serializer 2023-10-18 15:57:19 +08:00
b9a30a8df2 feat: add HEAD unit test serializer 2023-10-18 15:56:32 +08:00
cba3a5e87e Merge branch 'master' into 13920-validation-marks-valid-field-as-invalid 2023-10-17 09:50:31 +02:00
02ed808056 New methods: BaseActiveRecord::loadRelations() and BaseActiveRecord::loadRelationsFor(). 2023-10-13 13:22:48 +03:00
f0b970d4dd Merge branch 'master' into 13920-validation-marks-valid-field-as-invalid 2023-09-20 15:21:29 +02:00
9aac121d01 Fix #13920: Add unit test 2023-09-20 15:15:31 +02:00
30b491dfdf removed MIME file tests (#19951)
* removed MIME file tests
see also 0f7248c7a2 (commitcomment-127223170)

* added CHANGELOG line
2023-09-13 13:23:21 +02:00
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
671fbefe84 File Log writer without newline. (#19941)
* File Log writer without newline.

* Fix minor correction.

* Fix tests.

* Add more test.

* Add line to CHANGELOG.md.
2023-08-30 14:14:12 +02:00
8532622d7b Fix #19911: Resolved inconsistency in ActiveRecord::getAttributeLabel() with regard of overriding in primary model labels for attributes of related model in favor of allowing such overriding for all levels of relation nesting 2023-08-26 07:06:41 +04:00
e916e9d564 Fix #19914: Fixed ArrayHelper::keyExists() and ::remove() functions when the key is a float and the value is null 2023-08-18 15:31:09 +04:00
73f57fdcb0 Fix #19872: Fixed the definition of dirty attributes in AR properties for a non-associative array in case of changing the order of elements 2023-08-18 15:19:24 +04:00
73902f0730 Added support for string and DateTimeInterface as Cookie::$expire (#19920)
* Added support for string as Cookie::$expire

* Updated changelog for #19920 (Broadened the accepted type of `Cookie::$expire` from `int` to `int|string|null`)

* Fixed `\yiiunit\framework\web\ResponseTest::parseHeaderCookies()` to overwrite existing cookie.

* Added support for `\DateTimeInterface` in `\yii\web\Cookie::$expire`

* Fixed `\yiiunit\framework\web\ResponseTest::cookiesTestProvider()` for PHP 5.4 and commited missing code for \DateTimeInterface processing in `\yii\web\Response::sendCookies()`
2023-08-15 18:38:10 +02:00
84c15dc5d1 Fix associative array cell content in Table widget (#19908)
* Fixed rendering of assosative arrays in `\yii\console\widgets\Table`

* Updated readme for #19908 (fix associative array cell content rendering in Table widget)

---------

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2023-08-09 14:05:46 +02:00
c8c0ea97c4 Fix #19899: Fixed GridView in some cases calling Model::generateAttributeLabel() to generate label values that are never used 2023-07-24 11:52:38 +03:00
79c83ba7db Fix #9899: Fix caching a MSSQL query with BLOB data type 2023-07-24 10:03:18 +03:00
7d2e2b9e70 Fix #16208: Fix yii\log\FileTarget to not export empty messages 2023-07-24 10:01:24 +03:00
1a0e91e912 Fix #19906: Fixed multiline strings in the \yii\console\widgets\Table widget 2023-07-24 09:56:04 +03:00
76d6345e85 Add test resetSequence() for SQLite. (#19895)
* Add test `resetSequence()`.

* add more test.
2023-07-17 09:53:21 +02:00
4352b8744b Fix #19884: Added support Enums in Query Builder 2023-07-10 18:07:10 +03:00
b9e5a87f54 Fix tests, clean workflows, separate db tests, use codecov for code coverage (#19883) 2023-07-10 07:12:07 +03:00
85171844cf Fix #19868: Added whitespace sanitation for tests, due to updates in ICU 72 2023-06-21 18:28:12 +03:00
3cebbdad2e Fix #19853: Added support for default value for \yii\helpers\Console::select() 2023-06-09 19:36:21 +03:00
80a18ad6ba Fix #18859: Fix yii\web\Controller::bindInjectedParams() to not throw error when argument of ReflectionUnionType type is passed 2023-05-31 21:30:45 +03:00
48617d54fc Fix #19843: Enable memcache/memcached tests (#19850) 2023-05-25 21:15:10 +03:00