Commit Graph

2875 Commits

Author SHA1 Message Date
mdmunir
7dc9d07bcd Changable default flavor for Markdown helper
close #11438
2016-05-03 11:14:05 +02:00
Carsten Brandt
5bc2f3a851 avoid random test failure 2016-04-28 16:57:34 +02:00
Alexander Makarov
e00c9d904e Fixed tests to run properly on Windows 2016-04-28 13:52:45 +03:00
Carsten Brandt
e94b68436d complete test coverage for reading /dev/urandom
fixes an issue with buffered reading
2016-04-28 11:45:37 +02:00
Carsten Brandt
49028af437 skip testing /dev/urandom on windows
also removed redundant test
2016-04-28 11:09:09 +02:00
Carsten Brandt
2aeb479341 better unit test for generateRandomBytes() 2016-04-28 04:05:45 +02:00
Vladimir Khramov
c6d04644d3 passing properties to recursive call if properties of top object are not specified
fixes #7717
close #10960
2016-04-28 02:34:10 +02:00
Carsten Brandt
4411a74ebd proper fix for #9425, adjust changes from #11363
includes tests and fix that works in all cases.
2016-04-28 01:29:07 +02:00
Carsten Brandt
00d506c398 completed implementation for #7177
added TYPE_TIME and default values for format to be chosen from
corresponding formatter variable

fixes #7177
close #10778
2016-04-26 21:56:40 +02:00
Robbert Jan
bb0ef88860 Enhancement for DateValidator (#7177, #10165)
Added parameter to define if checking for 'date' or 'dateTime'
and updated parseDateValueIntl($value, $format) to facilitate
this validation based on defined type.

Added unit tests to for validating dateTime values when using short format validation.

close #10778
2016-04-26 19:22:41 +02:00
SilverFire - Dmitry Naumenko
8c2a70b3e7 Moved TraversableObject to yiiunit\data\base namespace 2016-04-26 13:30:37 +03:00
SilverFire - Dmitry Naumenko
e2e4f76229 Updated SqliteQueryBuilderTest to work with Composite in conditions
Updated code style, CHANGELOG
2016-04-25 23:36:41 +03:00
Sam Mousa
baab8d6a68 QueryBuilder now supports Traversable objects for IN clauses. 2016-04-25 23:36:32 +03:00
SilverFire - Dmitry Naumenko
813d1d9c31 DbSessionTest::testMigration() does not display migration process anymore (insted of 8de6fde) 2016-04-25 11:30:08 +03:00
SilverFire - Dmitry Naumenko
8de6fde989 Added Console helper mock, updated DbSessionTest::testMigration() to hide migration process output 2016-04-25 11:19:15 +03:00
Alexander Makarov
4f4fa6fdf0 Fixes #10710: yii\helpers\FileHelper::copyDirectory() is now throwing exception when trying to copy a directory to itself or a subdirectory 2016-04-23 01:58:33 +03:00
SilverFire - Dmitry Naumenko
f21e472c98 Update UserTest::testLoginRequired(), CHANGELOG 2016-04-22 22:22:02 +03:00
Andrii Vasyliev
b4995c3990 Fixed yii\console\Application::runAction to not to corrupt response exit code when action returns Response object
close #10235
2016-04-22 17:24:11 +02:00
raoul
60f6ecf063 yii\db\BaseActiveRecord now triggers event EVENT_AFTER_REFRESH` after a record is refreshed
fixes #9604
close #10867
2016-04-22 17:14:41 +02:00
Sam Mousa
5f1a5fbcf7 Implemented DI for callable component configuration
fixes #10908
2016-04-22 17:03:18 +02:00
Carsten Brandt
37d2373911 added tests for #9047
1. verify it only affects composite primary key situation
2. add failing test for composite primary key situation with join
2016-04-22 16:39:06 +02:00
Lennart van den Dool
f8a844a90f Query helper method for filter values containing operators
Basic implementation proposal for yiisoft/yii2#2022

Shortcomings/todo's:
* filtering on non-scalars (where IN statements) not supported
* Numeric properties with a corresponding validation rule will yield
  errors when they contain an alphanumeric operator. These properties'
  rules should be defined as 'string' or 'safe'.
* no implementation example in Gii code (yet).

close #8505
2016-04-22 14:05:24 +02:00
Carsten Brandt
640532d0c0 Merge pull request #11403 from yiisoft/fix-11176
This superseeds #11238, #11135, #11176.

fixes #11088
2016-04-22 13:14:45 +02:00
SilverFire - Dmitry Naumenko
bf9fb0e13e Fixed CheckboxColumnTest::testInputValue() 2016-04-22 14:02:48 +03:00
Carsten Brandt
8d8cd1a26d adjusted dbms specific tests 2016-04-22 12:56:56 +02:00
Edgard Lorraine Messias
278bfca140 Fixed quoteColumnName for table start with {{ or [[ 2016-04-22 12:41:25 +02:00
Carsten Brandt
38d347c9f5 fix quoting column name in case of quoted table name
column name was not quoted if a table name was used, that was using the
table prefix feature.

fixes #11088
close #11238
2016-04-22 12:31:46 +02:00
Carsten Brandt
fd68e6814e added failing test for #11088 2016-04-22 11:01:53 +02:00
Carsten Brandt
6309962c5c more tests for #11056 2016-04-22 10:56:17 +02:00
Carsten Brandt
22503ebe97 allow setting custom logger in Dispatcher via config
fixes #11056
2016-04-22 10:53:59 +02:00
SilverFire - Dmitry Naumenko
b77d74b6d6 Fixed broken PostgreSQLQueryBuilderTest::testCommentColumn() 2016-04-20 09:49:01 +03:00
SilverFire - Dmitry Naumenko
b08c82c5fe Driver specific QueryBuilderTest::testCommentColumn() - improved to use replaceQuotes() 2016-04-20 09:40:21 +03:00
SilverFire - Dmitry Naumenko
2478ba7b20 QueryBuilderTest::testCommentColumn() - improved to use replaceQuotes() 2016-04-20 09:35:43 +03:00
SilverFire - Dmitry Naumenko
8999e66e71 Fixed SqliteQueryBuilderTest 2016-04-19 18:40:05 +03:00
SilverFire - Dmitry Naumenko
1aa2f1d927 Removed sqlite/ColumnSchemaBuilder::comment() method override 2016-04-19 18:29:12 +03:00
SilverFire - Dmitry Naumenko
0fe27b9d3b Refactored code in PR #9441 2016-04-19 17:48:25 +03:00
SilverFire - Dmitry Naumenko
c9dfc90be0 Merge branch 'methods_for_schema_builder' of https://github.com/vaseninm/yii2 into vaseninm-methods_for_schema_builder 2016-04-19 12:21:33 +03:00
Chris Harris
5316576361 Fixes after() column string builder (#11362) 2016-04-19 11:59:16 +03:00
Edgard Lorraine Messias
8d6b669bc6 Added more tests for mutex; (#11359) 2016-04-16 12:59:33 +03:00
Alexander Makarov
5f7cd1cbc4 Skipped RNG performance tests 2016-04-12 13:46:25 +03:00
Klimov Paul
2d5a0bf5ae EachValidator::validateAttribute() fixed to restore original value on error 2016-04-12 12:00:33 +03:00
Klimov Paul
205f16811a Fixed yii\validators\EachValidator does not invoke validateAttribute() method of the embedded validator 2016-04-12 11:14:57 +03:00
maine-mike
ad6047e09f Fixes #10480: Fixed removing old identity cookie when loggin in as another user without logging out first 2016-04-12 02:19:34 +03:00
Alexander Makarov
7976aaeb59 Merge pull request #11285 from yiisoft/security-enhancements
Security enhancements
2016-04-12 02:02:18 +03:00
mdmunir
d437c4bd37 Add session migration 2016-04-09 20:45:59 +03:00
Angel Guevara
b49488b1f7 Enh new property skipUpdateOnClean for AttributeBehavior (#11302)
Fixes #11002: `AttributeBehavior::$skipUpdateOnClean` which determines whether to skip a behavior when the behavior owner has not been modified
2016-04-09 15:38:41 +03:00
Ivaylo Ushev
5921865459 Fixed: #11270 - Error when link record in one to many relation. (#11301)
Fixed: #11270 - Error when link record in one to many relation.
2016-04-08 10:36:38 +03:00
SilverFire - Dmitry Naumenko
3b32359fa9 Updated ActiveRecordTestTrait to ensure nested relations work as expected 2016-04-07 14:50:09 +03:00
Mikk Tendermann
2f9395bbd6 fix #11299 2016-04-07 10:52:43 +03:00
Aleksei Vesnin
6745bdb65e Fixed yii\widgets\ActiveField to handle inputs AJAX validation with changed ID properly.
Tests for `yii\widgets\ActiveField` with custom input ID.
2016-04-06 23:08:23 +03:00