Commit Graph

666 Commits

Author SHA1 Message Date
voroks
25f08afc96 Fixes #8293: yii\db\Query can be passed to insert method in yii\db\QueryBuilder 2017-01-28 23:47:26 +03:00
Alexander Makarov
1cc327f108 Run common batch insert tests for SQLite 2017-01-28 14:41:57 +03:00
Dmitriy Bashkarev
be4ebdd049 Fixes #13134: Added logging URL rules (bashkarev) 2017-01-27 19:03:45 +03:00
Herbert Maschke
d4d6c1dabf Tests for 13393 (#13439)
* add some unit tests regarding redirection for ResponseTest

* also tests yii\web\controller redirect
2017-01-24 16:58:01 +03:00
Herbert Maschke
a6da9d5da8 Added unit tests regarding redirection for ResponseTest (#13437) 2017-01-24 15:05:28 +03:00
Klimov Paul
c73de31a90 Fixed yii\web\MultipartFormDataParser adds an extra newline to every value 2017-01-23 13:18:31 +02:00
Robert Korulczyk
507cc52658 Allow omit default params on URL creation
Fixes #10970
2017-01-22 22:19:13 +02:00
Elvira Sheina
b82caa97e8 Fixes #7820: Add or relation for targetAttribute in yii\validators\UniqueValidator 2017-01-22 19:45:18 +03:00
SilverFire - Dmitry Naumenko
3d549374bf Added BlameableBehaviorTest 2017-01-22 16:21:53 +02:00
João Pedro Pereira
3692941ead Fixes #11464: Foreign key name is not provided by schema 2017-01-16 00:27:20 +03:00
Alexander Makarov
eee7b9663c Merge branch 'master' into fix-numbervalidator-comma-decimal-separator 2017-01-15 22:41:09 +03:00
Klimov Paul
d4ac47abe7 Added yii\validators\EachValidator::$stopOnFirstError allowing addition of more than one error 2017-01-13 17:59:10 +02:00
Klimov Paul
b93856cdfd Unit test for yii\caching\DbDependency added 2017-01-13 12:16:37 +02:00
Klimov Paul
3946ac0dab Added yii\widgets\InputWidget::$field field, allowing access to the related yii\widget\ActiveField instance 2017-01-13 11:36:33 +02:00
Robert Korulczyk
6d277ddafb Tests for create URLs with multiple domain rules. (#13351) 2017-01-08 21:58:33 +03:00
a.kompaniets
50f3012f68 fixed currency format with custom decimal fraction
fixes #12345
close #12648
2017-01-03 00:03:40 +01:00
Carsten Brandt
a51dadc866 added test for #12345 2017-01-03 00:03:40 +01:00
Vladimir
f3bc11c724 Implement #13219: Ability to not shuffle masters connections (#13241)
* Implement #13219: Ability to not shuffle masters connections

* Enh: add master connection getter

* Add test case for #13241 which implements #13219

* Doc comments [skip ci]

* Doc comments

* Fix: wrong return value when no masters

* Revert `getMasterPdo()` 4a786c7e10

* Fix: try to fix too slow test

* Refact: fix Single Responsibility; Fix possible BC break

* Update Connection.php

* Update Connection.php

* Update Connection.php

* Update Connection.php

* Updated CHANGELOG

* Fix: grammatic mistake

* Refact: property renamed from `randomizeMasters` to `shuffleMasters`

* Refact: split and try to simplify tests
2017-01-02 02:15:13 +01:00
bashkarev
338e5967cb Added Logging of memory usage
calculateTimings added options: `memory`, `memoryDiff` memory_get_usage only the used memory is reported.

close #13268
2017-01-02 02:01:49 +01:00
SilverFire - Dmitry Naumenko
f6b9aac0bf Ehanced yii\web\ErrorAction test coverage 2016-12-31 21:38:55 +02:00
SilverFire - Dmitry Naumenko
24ad05de5b Refactored yii\web\ErrorAction to make it reusable 2016-12-31 21:29:12 +02:00
Pavel Ivanov
4db3bcd64c Fixes #13277: Invalid parsing of -- in CLI 2016-12-31 16:31:07 +02:00
SilverFire - Dmitry Naumenko
178d319556 Added Cache::getOrSet() 2016-12-30 23:49:18 +02:00
Carsten Brandt
96ee5c373e added more tests for SwiftMailer vulnerability CVE-2016-10074
https://legalhackers.com/advisories/SwiftMailer-Exploit-Remote-Code-Exec-CVE-2016-10074-Vuln.html
2016-12-28 23:50:10 +01:00
SilverFire - Dmitry Naumenko
6af2a43390 Added EmailValidatorTest to prove CVE-2016-10074 does not affect EmailValidator 2016-12-29 00:21:23 +02:00
Alexander Makarov
c33583aede Fixed naming for #13214 as suggested by Paul 2016-12-26 22:42:14 +07:00
Alexander Makarov
c175c6b73a Merge branch 'master' into xml-formatter-root-and-object-tags 2016-12-26 18:17:15 +03:00
Klimov Paul
6211f9c030 MigrateControllerTestTrait fix for HHVM 2016-12-26 16:02:22 +02:00
Klimov Paul
194577c55e Code style fix 2016-12-26 15:39:33 +02:00
Carsten Brandt
c4857176ac added test for ArrayHelper::multisort() with closure key
related to #13248
2016-12-20 14:14:01 +01:00
SilverFire - Dmitry Naumenko
ed82ba4ee2 Revert "fix ArrayHelper::getValue() to throw exception on invalid input"
This reverts commit e963b2af64 because of BC breaking reported in #13248.

To know more about the reasons of commit revertinvg, visit https://github.com/yiisoft/yii2/issues/13248
2016-12-20 12:39:25 +02:00
Dmitry Naumenko
8562055937 Merge pull request #13216 from yiisoft/arrayhelper-error
fix ArrayHelper::getValue() to throw exception on invalid input
2016-12-18 20:02:26 +02:00
Pavel Chaplygin
25e6eb04a5 refs #11122: Fixed can not use orderBy with aggregate functions (#12772)
* refs #11122: Fixed can not use `orderBy` with aggregate functions like `count`, `max` etc.

* Update QueryTest.php
2016-12-18 11:28:34 +02:00
SilverFire - Dmitry Naumenko
a710345ea7 Enhanced PHPDocs, added Unit tests, updated CHANGELOG 2016-12-18 11:24:24 +02:00
SilverFire - Dmitry Naumenko
24dae19fc8 ListView: PHPDocs and tests enhanced 2016-12-18 10:56:52 +02:00
SilverFire - Dmitry Naumenko
cdabb660d6 Refactored ListView::beforeItem, ::afterItem. Added Unit tests. 2016-12-18 10:52:12 +02:00
SilverFire - Dmitry Naumenko
df733d1bbe Fixed QueryBuilderTest 2016-12-17 22:08:13 +02:00
SilverFire - Dmitry Naumenko
2f8225a244 Fixed QueryBuilderTest to work with PgSQL and other DBMS 2016-12-17 21:58:22 +02:00
Daniel Gómez Pan
b985ea3476 Fix #13108: Negative integer parameter causes "Unknown alias" error w… (#13220)
* Fix #13108: Negative integer parameter causes "Unknown alias" error when you execute command console

* Fix #13108: Fix small issues

* Update Request.php

change order
2016-12-17 21:30:36 +02:00
SilverFire - Dmitry Naumenko
54c7e0c434 Added tests for QueryBuilder::batchInsert() 2016-12-17 19:20:01 +02:00
Alexander Makarov
a7f0a3c147 Merge branch 'master' into fix-numbervalidator-comma-decimal-separator 2016-12-17 16:39:00 +03:00
Robert Korulczyk
08054bba6d Fix tests. (#13227) 2016-12-17 16:37:31 +03:00
Ni-san
5795b3937e Added rbac\BaseManager::hasNoAssignments() 2016-12-17 12:37:36 +02:00
Carsten Brandt
66e8158716 Fixes #11771: Fixed semantics of yii\di\ServiceLocator::__isset() to match the behavior of __get() which fixes inconsistent behavior on newer PHP versions 2016-12-16 23:48:08 +03:00
Brandon Kelly
350e93e626 Fixes #12612: Query conditions added with yii\db\Query::andWhere() now get appended to the existing conditions if they were already being joined with the and operator 2016-12-16 13:19:14 +03:00
Alexander Makarov
8c5c7047a6 Merge branch 'master' into fix-pjax-automatic-id 2016-12-16 12:47:18 +03:00
Carsten Brandt
e963b2af64 fix ArrayHelper::getValue() to throw exception on invalid input
fixes #12927
2016-12-16 01:49:37 +01:00
Carsten Brandt
9821c589c5 fixed issue with rest\UrlRule extraPatterns
url creation did not work when no HTTP verb was specified.
fixes #13200
2016-12-16 00:00:27 +01:00
Alexander Makarov
e83624df9e Closes #11418: Added test for #11418 2016-12-16 01:43:54 +03:00
SilverFire - Dmitry Naumenko
11c58549d4 Fixed FileHelperTest::testFindFilesRecursiveWithSymLink() 2016-12-15 23:36:16 +02:00