SilverFire - Dmitry Naumenko
4dc771d0a0
Fixed DbSessionTest
2016-02-25 12:35:16 +02:00
SilverFire - Dmitry Naumenko
1e1baec6e6
Reverted c478199
2016-02-25 12:14:22 +02:00
SilverFire - Dmitry Naumenko
b641cb7dea
Updated ArrayHelperTest::testIsTraversable()
2016-02-25 12:02:48 +02:00
SilverFire - Dmitry Naumenko
c478199937
Added property yii\web\DbSession::encodeData to encode/decode session data in base64 on session read/write
...
Closes #6173
2016-02-25 00:17:26 +02:00
Sam Mousa
16a6af5fa8
Add helper function for checking if an object is an array-like object.
...
Added support for traversable objects in `BaseHtml` and `ArrayHelper`
2016-02-24 23:49:05 +02:00
SilverFire - Dmitry Naumenko
d66659e329
ArrayHelperTest - groupBy tests moved to a separate method
2016-02-24 23:08:59 +02:00
SilverFire - Dmitry Naumenko
54c0d9a31c
Merge branch 'helper_indexbydimensions' of https://github.com/quantum13/yii2 into quantum13-helper_indexbydimensions
2016-02-24 21:35:51 +02:00
SilverFire - Dmitry Naumenko
66c6268e5f
FileValidator: updated guide-ru,en, PHP; updated tests
2016-02-24 09:05:29 +02:00
kirSeNN
a4c68b5278
#5469 added mimetype mask validation feature
2016-02-24 00:40:34 +02:00
Carsten Brandt
2d74a8da41
added test for DetailView related attribute
...
issue #10923
2016-02-22 09:50:32 +01:00
Carsten Brandt
6c5c2ff64f
added test for AccessRule class
...
related to #10898
2016-02-19 17:04:35 +01:00
Carsten Brandt
187c314d01
better fix for test break b9880f3247
2016-02-17 14:27:10 +01:00
SilverFire - Dmitry Naumenko
4e4fb02264
Fixed QueryBuilterTest for PgSQL
2016-02-17 07:42:04 +02:00
Carsten Brandt
b9880f3247
added test for custom index hints in FROM and JOIN
...
close #10869
2016-02-16 21:24:00 +01:00
Sam Mousa
af5f5d0e3e
Fixes #9851 : Fixed partial commit / rollback in nested transactions
2016-02-15 23:32:32 +03:00
quantum
7b46bd1f7c
Fixes #10451 : Check of existence of $_SERVER in \yii\web\Request before using it
2016-02-15 23:22:45 +03:00
Daniel Gomez Pan
3bf3c20710
Merge remote-tracking branch 'upstream/master' into 10764-enh-options-tag
...
# Conflicts:
# framework/CHANGELOG.md
2016-02-15 17:37:40 +01:00
Vladimir Khramov
ef8b0a2be0
parameter dimensions in ArrayHelper::index
2016-02-15 17:47:44 +10:00
SilverFire - Dmitry Naumenko
624be05be0
Updated TimestampBehaviorTest to test the callable in array format as value
2016-02-13 12:39:05 +02:00
Sam Mousa
8ea4c660da
Several improvements to DI container
...
- Refactored invoke into separate resolve method (reusability)
- Added support for associative params array
- Added PHPUnit group doc to DI tests.
- Improved the tests for better coverage, and fixed a bug discovered by the new tests.
close #10811
2016-02-12 17:29:18 +01:00
Carsten Brandt
31bd0e392b
Merge pull request #10828 from yiisoft/activequery-alias2
...
Activequery::joinWith() alias
2016-02-12 14:30:05 +01:00
Carsten Brandt
4f4a661061
fixed test break when formatter is loaded before intl magic
2016-02-12 14:00:53 +01:00
Carsten Brandt
ce35739469
joinWith implementation cleanup
2016-02-12 12:45:29 +01:00
Carsten Brandt
3f8df39f45
more tests for joinWith alias
...
also test on joining the same relation twice
2016-02-12 12:35:29 +01:00
Carsten Brandt
94571e2c23
improved tests for ActiveQuery::joinWith alias
2016-02-12 12:35:29 +01:00
Carsten Brandt
5f19e7aa41
Added Alias Syntax for joinWith()
...
Add alias syntax to joinWith(), e.g. joinWith('author a').
No need to know the table name for defining an alias for the relation.
fixes #2377 , alternative to #8788 , which allows later implementation of
getting alias and column name ambiguation.
depends on #10813 to be merged first.
2016-02-12 12:35:28 +01:00
Carsten Brandt
157d6c79cc
fixes #4972 by adding and alias() to ActiveQuery
...
allows defining an alias without knowing the model table name.
2016-02-12 12:34:16 +01:00
Klimov Paul
d22a3a0a07
Fixed yii\validators\EachValidator does not respect skipOnEmpty rule parameter
2016-02-12 13:33:36 +02:00
nainoon
076329bfba
add test for join with alias
...
close #8788
2016-02-12 12:26:34 +01:00
Klimov Paul
e4f71eef69
CheckboxColumnTest location fixed
2016-02-12 13:24:18 +02:00
boehsermoe
22dceedabb
Fixed DetailView for arrayable models
...
The toArray() function return [attribute => value] but there is need a list of attribute names.
UnitTest for the DetailView arrayable models
close #10760
2016-02-11 15:58:54 +01:00
SilverFire - Dmitry Naumenko
ef413d0337
AuthTest::testActive - fixed test case
2016-02-11 00:43:45 +02:00
SilverFire - Dmitry Naumenko
6449e1a09f
Merge branch 'master' into fix-auth-method
2016-02-11 00:42:43 +02:00
Daniel Gomez Pan
295bb3e173
WIP #10764 : adjusted Html::beginTag and Html::endTag methods to be consistent
2016-02-09 18:13:32 +01:00
Daniel Gomez Pan
f4990b3879
WIP #10764 : add extra test for Menu class
2016-02-07 22:24:08 +01:00
SilverFire - Dmitry Naumenko
32c424da10
Fixed i18n message sources to load fallback messages in a smarter way
...
Added migration and unit-tests for `yii\i18n\DbMessageSource`
Closes #7964
2016-02-07 23:08:52 +02:00
Carsten Brandt
0f30b0843b
added test for SORT_DESC
...
for #8348 and #10607
2016-02-07 20:50:25 +01:00
Andrew Nester
78de315794
Fixed processing nested objects multisort in BaseArrayHelper
...
fixes #8348
close #10607
2016-02-07 20:20:32 +01:00
Carsten Brandt
273bd9ba6d
add test for ActionFilter::isActive
2016-02-07 16:54:38 +01:00
Daniel Gomez Pan
cd7039e97c
WIP #10764
2016-02-07 16:39:41 +01:00
Carsten Brandt
ddade3fc6e
fixed behavior of AuthMethod::isActive
...
this is an adjustment of #10188 fixing #7405
isActive() should not be affected in any way by specifying "optional" property.
isActive() should be determined from only and except.
If it is active it can then be checked if optional or not.
Currently this changes the behavior that except will always have precedence.
2016-02-07 16:35:28 +01:00
mdmunir
2505e7ef63
Fixes #9785 : Added ability to invoke callback with dependency resolution to DI container
2016-02-07 14:55:45 +03:00
Carsten Brandt
42b8569846
Revert DI injection via controller action method signature
...
reverts b7020065c and related commits.
reverts implementation of #9476
For reasons, see discussion https://github.com/yiisoft/yii2/issues/9476#issuecomment-179749039
2016-02-06 18:40:50 +01:00
Andrew Nester
fecd4dcfa5
10739 - Multiple slashes at the end of route should not be accepted as valid url
2016-02-05 16:38:49 +03:00
Dmitry Naumenko
a9bb31c4c0
Merge pull request #10753 from SilverFire/10751-url-validator
...
Fixed UrlValidator pattern to improve matching
2016-02-05 14:47:47 +02:00
SilverFire - Dmitry Naumenko
d12af259e0
Fixed UrlValidator pattern to improve matching
2016-02-05 14:47:12 +02:00
Andrew Nester
a0ca37ed6a
10545 - Fix for XMLResponseFormatter to format models in a proper way
2016-02-05 14:31:12 +03:00
SilverFire - Dmitry Naumenko
08ce8c0718
EmailValidatorTest - spelling typo fixed
2016-02-02 09:22:15 +02:00
SilverFire - Dmitry Naumenko
4c31c26628
EmailValidator - the name of the mailbox is no longer limited with the length
2016-02-01 23:49:51 +02:00
Alexander Makarov
12761bf677
MSSQL does not support explicit value for an IDENTITY column #9773
2016-01-31 01:21:00 +03:00