Commit Graph

2875 Commits

Author SHA1 Message Date
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
Tobias Munk
b6d14cab26 Merge commit '3f66fb6cdfd498a119bfb34562549d07ff2ff9e0' into feature/docker-testing 2017-01-20 01:24:39 +01:00
Tobias Munk
25cc36c524 fixed network setup 2017-01-20 00:16:12 +01:00
Tobias Munk
cc1f398946 updated docs 2017-01-19 22:47:17 +01:00
Tobias Munk
f5ab85c393 updated debug settings (+56 squashed commits)
Squashed commits:
[c42f30c] updated base image, added docs & local test script
[88f0c40] debug
[6220c94] fixed network isolation
[c63c7c3] test mssql only on test/mssql branch
[74efc78] fixed isolation in after_script
[02b895b] updated test setup
[3335f39] updated retry
[bd123b2] updated service checks
[45e4c90] updated build
[d54da7a] updated after_script
[5a4c726] 🏭 wait for mysql
[08db878] fixed typo
[ea53c1e] updated build stages
[9807ce3] fixed typos
[cf9f64e] fixed mssql testing
[08001d6] added db create for mssql
[62f6b65] run travis (gitlab simulation) only in travis branch
[cf63da4] streamlined build
[76808ac] updated test jobs
[18d79b5] fixed test error
[7b2bce6] updated build & composer.lock
[244623a] updated build
[86bd71b] fixed cleanup
[86ab2e8] fixed cleanup
[091d4b8] fixed tests
[2d315b5] fixed build config
[2913644] fixed project names
[f53b823] refactored build config
[5a791fb] refactored docker db-tests
[b4479b0] revert
[a975fa5] updated gitlab build
[4e4e5e4] updated mssql setup
[d6ff03b] added sleep workaround
[578b102] removed host volumes in test
[928f50b] fixed path
[967ab10] updated tests
[520f317] bootstrap cubrid
[5f245e1] 🏭 fixed cubrid tests
[940dbbc] 🏭 pinned cubrid version 9.3.6.0002
[8d5ea69] 📝 dockerized test commands
[9954b54] updated cubrid
[fb3afac] updated docs
[3f63ced] updated isolation
[bdc3c83] 🏭 build cubrid
[b777911] 🏭 disabled mssql, updated cubrid
[36534e7] added travis-a-like stage
[6546f02] updated GitLab build
[c046096] updated test setup
- added mssql and cubrid stack
[5a0e635] disabled host-volume
[75cf342] fixed test
[8de0794] fixed testing
[465d27a] added stages
[63aa950] added script
[68eecef] fixed typo
[00e4b88] updated Docker build
[f9072cc] added dockerized test setup
2017-01-19 18:01:08 +01: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
SilverFire - Dmitry Naumenko
edc3d0a35f Enhanced TestCase::invokeMethod(), ::getInaccessibleProperty() to revoke access after calling 2016-12-31 21:27:48 +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
kidol
3ea5b97585 Fix existing test 2016-12-21 19:37:43 +01: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
p.chapl
5488fc6e28 fixes #13221
Make \yii\db\QueryTrait::limit and \yii\db\QueryTrait::offset methods works with \yii\db\Expression
2016-12-20 14:08:03 +07: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
Alexey Rogachev
8d813f7bf1 Fixes #12840, #12836, #13231, #13232
Additionally added tests for #10302 (#10284 (comment)), #10284 (#10217 (comment)), #11729
2016-12-18 12:06:17 +03: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
Robert Korulczyk
2a68351ec3 Fix tests on travis. (#13238) 2016-12-18 01:24:41 +03: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