Commit Graph

2875 Commits

Author SHA1 Message Date
Klimov Paul
48b0b962b8 Added yii\base\Event::offAll() method allowing clear all registered class-level event handlers 2016-09-05 12:46:43 +03:00
Klimov Paul
ea03f56d42 BaseActiveRecord methods canGetProperty() and canSetProperty() improved to handle attribute list fetching failure. 2016-09-05 12:22:09 +03:00
Robert Korulczyk
7d1ef4c054 Improvements for handling redirections produced by UrlNormalizer (#12451) 2016-09-04 11:03:19 +03:00
Bizley
3deb6900b8 Yii 2 name fix (#12448)
To match Documentation Style Guide

> Yii 2.0 or Yii 2 (not Yii2 or Yii2.0)
2016-09-03 22:02:33 +02:00
Paul Klimov
2fe0a405a9 fix for #9027 - UploadedFile early instantiation problem (#12439)
fix for #9027 - UploadedFile - class instance is created on demand when getInstance or getInstances called, not when loadFiles called
2016-09-02 17:27:59 +03:00
Robert Korulczyk
9d882e53fe Fixes #12431: Fix bug when lock file was not removed after yii\mutex\FileMutex::release() 2016-09-01 23:50:05 +03:00
Carsten Brandt
857da0e102 added test for Module class
issue #12422
2016-09-01 11:52:07 +02:00
Klimov Paul
db15c50557 Fixed yii\console\controllers\AssetController looses bundle override configuration, which makes it external one 2016-08-31 17:25:52 +03:00
Klimov Paul
90b9ed87bd Added yii\data\Sort::setAttributeOrders() 2016-08-31 14:03:34 +03:00
Klimov Paul
8c9bafcc06 Fix unit test on HHVM 2016-08-31 13:13:39 +03:00
Klimov Paul
56cc97ae42 Added yii\console\controllers\AssetController::deleteSource 2016-08-31 13:06:19 +03:00
Robert Korulczyk
8142de23d4 Improve normalizer for URL manager 2016-08-30 21:25:23 +02:00
Cronfy
a7f63b6da3 Add normalizer for URL manager. 2016-08-30 21:22:58 +02:00
Klimov Paul
75439d367d Fixed canGetProperty() and canSetProperty() returns false for yii\db\BaseActiveRecord attributes 2016-08-30 17:39:23 +03:00
Klimov Paul
cd8c01f555 Fixed yii\rest\Serializer::serialize() serializes DataProvider incorrectly, if models keys do not compose integer sequence 2016-08-29 18:20:16 +03:00
Carsten Brandt
469c0548b6 fixed formatter to respect grouping separator for currency format
fixes #12331
2016-08-25 20:29:50 +02:00
Dmitriy Makarov
2d9b659777 Fixes #12296: Added value validation to yii\log\Target::setLevels() 2016-08-25 20:47:03 +03:00
Robert Korulczyk
4fdfbc2739 Add tests for custom message for UniqueValidator 2016-08-24 22:59:58 +02:00
Dmitriy Makarov
d4536fe645 Added Target test of the following methods: (#12294)
- getLevels()
- setLevels()
2016-08-24 14:31:53 +03:00
SilverFire - Dmitry Naumenko
623f30324d Added tests for ActiveField::hint(), fixed code formatting 2016-08-22 16:59:09 +03:00
Dmitriy Makarov
8b49164f72 Added BaseYiiTest tests of the following methods: (#12235)
- BaseYii::info()
- BaseYii::warning()
- BaseYii::trace()
- BaseYii::error()
- BaseYii::beginProfile()
- BaseYii::endProfile()
2016-08-21 13:53:45 +03:00
Klimov Paul
3e3c4b12ef unit test BaseYiiTest::testSetupLogger() improved 2016-08-18 15:42:16 +03:00
Dmitriy Makarov
cb6e5dcc61 Added BaseYii test for the setLogger() method (#12187)
Added BaseYii test for the setLogger() method
2016-08-18 15:23:56 +03:00
Dmitriy Makarov
dc8f6e8195 Added EmailTarget tests of the following methods: (#12150)
- init()
- export()
2016-08-12 23:24:54 +03:00
Nikola Kovacs
84124bec4f Fix grammar in migration template docblocks. (#12148)
Fix typo in test file's name.
2016-08-12 17:55:43 +03:00
Klimov Paul
143f9070af Fixed yii\db\BaseActiveRecord::updateAttributes() change isNewRecord state for the new model 2016-08-12 11:43:31 +03:00
Dmitriy Makarov
81479ff085 Added Dispatcher tests of the following methods: (#12127)
* Added Dispatcher tests of the following methods:
- getTraceLevel()
- setTraceLevel()
- getFlushInterval()
- setFlushInterval()
- dispatch()
- init()

* [Fix] Added the 'mocking' flag
2016-08-10 12:50:57 +03:00
Sergey Makinen
afc298c6ef Fixed HttpCache was sending an empty Pragma header (#12100) (#12123) 2016-08-09 15:03:57 +02:00
Sergey Makinen
bbbb98626f HttpCache no longer returns 304 HTTP code when callbacks return null (#12099) 2016-08-08 23:58:39 +03:00
Carsten Brandt
ef0658726f Revert "Revert "fixed mysql defaul integer display width on unsigned pk""
This reverts commit 144d78ebb4.

fixes #11541
2016-08-08 13:36:08 +02:00
Dmitriy Makarov
552ad141b6 Added SyslogTarget tests of the following methods: (#12093)
- export
- formatMessage
2016-08-08 13:20:22 +02:00
Carsten Brandt
10806a65a4 validate input in REST serializer
fixes #12107
2016-08-08 13:14:22 +02:00
Carsten Brandt
144d78ebb4 Revert "fixed mysql defaul integer display width on unsigned pk"
This reverts commit 85d89e4893 because it
is a breaking change. see #11541
2016-08-08 11:54:29 +02:00
Carsten Brandt
85d89e4893 fixed mysql defaul integer display width on unsigned pk
fixes #11541
2016-08-08 10:47:34 +02:00
SilverFire - Dmitry Naumenko
3fcc26996b Fixed #11973: yii\helpers\BaseHtml::getAttributeValue() fixed to work with items[] notation correctly 2016-08-05 15:08:51 +03:00
Paul Klimov
a53c1f9525 Added yii\behaviors\AttributeTypecastBehavior (#12067)
Added `yii\behaviors\AttributeTypecastBehavior`
2016-08-05 13:26:26 +03:00
Dmitriy Makarov
5d09f32b3b Added logger tests of the following methods: (#12083)
- getDbProfiling()
- calculateTimings()
- getElapsedTime()
- getLevelName()
- getProfiling()
2016-08-05 10:34:29 +02:00
Alexander Makarov
01c4dde202 Added tests for column schema builder comment() method 2016-08-05 02:22:46 +03:00
Dmitriy Makarov
dc4a4b456c Test for logger, flush method (#12041)
* Added test for logger, flush method
- testFlushWithoutDispatcher
- testFlushWitDispatcherAndDefaultParam
- testFlushWitDispatcherAndDefinedParam

* Used 'yii\\log\\Dispatcher' instead of Dispatcher::class as parameter for the getMock method
2016-08-04 20:19:04 +03:00
Robert Korulczyk
993f2aef28 Fixes #11275: Added possibility of unset or force replace former value in ArrayHelper::merge() 2016-08-03 22:49:49 +03:00
Klimov Paul
acfe21b400 Fixed yii\helpers\Json::encode() encodes empty array returned by JsonSerializable::jsonSerialize() as object 2016-08-01 10:31:10 +03:00
Dmitriy Makarov
b2b2cb2ada Added more tests for logger (#12034)
- testLogWithTraceLavel
- testLogWithFlush
2016-07-28 19:43:03 +03:00
Klimov Paul
8de6a5117c Fixed yii\base\Model::offsetExists() throws an exception on un-existing field 2016-07-28 12:33:16 +03:00
Daniel Gómez Pan
83496853c8 Fixes #11461: Fixed migration tool error when create migrate with comma in defaultValue 2016-07-28 01:15:55 +03:00
Egor Verbitskiy
2fbd55b634 Fixes #11949: Fixed ActiveField::end generates close tag when it's option['tag'] is null 2016-07-14 12:38:26 +03:00
Evgeniy
ad796dbf22 #11912: Postgresql negative default values support for integer/float/decimal columns (#11933)
* fixes #11912: Postgresql negative default values support for integer/float/decimal columns

* added more tests

* updated CHANGELOG.md
2016-07-11 23:49:43 +02:00
Carsten Brandt
bda42b68ce fixed yii\di\Instance documentation
fixes #11637
2016-07-11 15:01:17 +02:00
Carsten Brandt
7076b38ea9 added a test for #11925 2016-07-11 12:09:54 +02:00
Angel Guevara
8c240ed067 Fixes #11683: Fixed fixture command to work with short syntax. yii fixture "*, -User" should be used instead of yii fixture "*" -User 2016-07-07 01:30:06 +03:00
Carsten Brandt
326cdfeb52 added test for #11256 2016-07-06 14:51:59 +02:00