Commit Graph

3198 Commits

Author SHA1 Message Date
Carsten Brandt
3e79d56447 made AssetBundle tests less cryptic
cleanup step was added in setUp() so this will still work.

split test functions filehelper test
2017-05-08 10:56:56 +02:00
Carsten Brandt
5e8e6840b6 Added copyEmptyDirectories option to FileHelper
also set it to false in AssetManager to avoid creating a lot of empty
directories.

fixes #9669
2017-05-08 00:21:53 +02:00
quantum
583a2bcb9f failing test for asset bundle publishing empty directories 2017-05-08 00:17:34 +02:00
Carsten Brandt
fb2441c3d7 moved query log logic into private method and reduced calls to getRawSql()
fixes #12528
2017-05-08 00:04:37 +02:00
Carsten Brandt
65ea226729 added option to disable query logging in DB command
fixes #12528
2017-05-08 00:04:13 +02:00
Andrey Akimov
5695b869a9 Fixes #13890: DbTarget log transaction bug 2017-05-04 20:30:38 +02:00
Bizley
f8b3d68817 Fixes #4793: yii\filters\AccessControl now can be used without user component 2017-05-03 00:18:16 +02:00
Alexander Makarov
7b2df5554c Fixes #14072: Fixed a bug where \yii\db\Command::createTable(), addForeignKey(), dropForeignKey(), addCommentOnColumn(), and dropCommentFromColumn() weren't refreshing the table cache on yii\db\Schema 2017-05-02 18:26:02 +02:00
Robert Korulczyk
31e321b9b2 Remove unused imports. (#14096) 2017-05-01 20:26:15 +02:00
SilverFire - Dmitry Naumenko
2d0e3fb9ef Fixed Oracle SQL queries with IN condition and more than 1000 parameters 2017-05-01 15:59:37 +03:00
Robert Korulczyk
33cff4b5cc Cleanup after #14017 (#14091) 2017-05-01 11:58:02 +02:00
brandonkelly
3456c4e0fd !== 2017-04-28 14:23:08 -07:00
brandonkelly
11c0d4bf15 Skip just certain things for sqllite 2017-04-28 12:17:45 -07:00
brandonkelly
237af91e8e Skip testAutoRefreshTableSchema on sqllite 2017-04-28 06:38:02 -07:00
Brandon Kelly
be3f3e0bb1 Merge branch 'master' into schema-cache-fixes 2017-04-27 13:53:05 -07:00
Robert Korulczyk
2d28b585a0 Merge branch 'master' into 13614-add-a-failing-test-for-url-rule 2017-04-27 22:07:55 +02:00
SilverFire - Dmitry Naumenko
8349362271 Fixed tests 2017-04-27 22:43:37 +03:00
SilverFire - Dmitry Naumenko
fce20a3020 Renamed ActiveForm::registerJs() to registerClientScript(), added tests 2017-04-27 22:27:59 +03:00
brandonkelly
15acf45ab2 Merge branch 'master' of https://github.com/yiisoft/yii2 into schema-cache-fixes 2017-04-27 10:35:30 -07:00
brandonkelly
e242e9b0ee Fixes #14072: clear table schema cache for all methods that affect cache 2017-04-27 10:34:08 -07:00
Alexander Makarov
37fc6c5afb Alternative names 2017-04-26 15:36:36 +03:00
Alexander Makarov
a9bf1a3a7f Removed redundant use 2017-04-26 12:02:09 +03:00
Kolyunya
1e65fc29ed Fixes #14033: Fixed yii\filters\AccessRule::matchIp() erroring in case IP is not defined under HHVM 2017-04-26 11:53:42 +03:00
Carsten Brandt
d786b78f25 Helper independent (#14050)
* Made sure most helpers are independent of Yii::$app

* Made sure most validators are independent of Yii::$app
2017-04-26 09:49:44 +02:00
Cyrillos Jonua
db0e7a6c8f Fixes #13848: yii\di\Instance::ensure() wasn't throwing an exception when $type is specified and $reference object isn't instance of $type 2017-04-26 03:28:05 +03:00
Leandro Guindani Gehlen
385eb88048 Added yii\data\Sort::parseSortParams
allowing customize other params request formats in descendant class.

close #13170
2017-04-26 01:42:45 +02:00
Paul Klimov
3598f8180c Fixes #13087: Fixed getting active validators for safe attribute 2017-04-26 02:29:10 +03:00
sasha-ch
339c7663eb Fixes #10346: Fixed "DOMException: Invalid Character Error" in yii\web\XmlResponseFormatter::buildXml() 2017-04-26 02:06:36 +03:00
Alexander Makarov
7db93fc33d Refactored solution to be contained within ActiveQuery instead of helper 2017-04-25 23:24:27 +03:00
vladis84
8474927a55 Fixed ambiguous error sql while using unique validator 2017-04-25 23:24:12 +03:00
Sam Mousa
98871123c9 Fixed ignored params when using count in SqlDataProvider 2017-04-25 10:54:18 +02:00
Гордиенко Владислав Юрьевич
bda091bbb2 yii\filters\RateLimiter refactored (#13994)
Refactored yii\filters\RateLimiter and added tests
2017-04-24 22:20:46 +03:00
Nikolay Oleynikov
d0ce165ba6 Fixes #13728: Fixed the bug when yii\behaviors\SluggableBehavior wasn't preserving immutable slug values 2017-04-20 21:30:04 +03:00
SilverFire - Dmitry Naumenko
d3f97f7e64 Switched to asset-packagist 2017-04-20 14:46:30 +03:00
Klimov Paul
49564ae3e1 Fix TimestampBehaviorTest to be compatible with PHPUnit 6 2017-04-20 12:20:30 +03:00
Alexander Makarov
9bd7dfc89e Skipped segfaulting test when running on Travis and corresponding PHP versions 2017-04-19 18:03:39 +03:00
Гордиенко Владислав Юрьевич
0cf236ec66 Fixes #13963: Added tests for yii\behaviors\TimestampBehavior 2017-04-19 12:38:47 +03:00
Mikk Tendermann
59d3292399 [IpValidator] disable ipv6 checks (#13984)
* disable ipv6 checks

* remove empty line

* updated CHANGELOG.md
2017-04-18 19:06:31 +03:00
Sergey Makinen
454f0a9301 Fixes #13807: Fixed yii\db\QueryBuilder to inherit subquery params when building a INSERT INTO ... SELECT query 2017-04-17 03:31:43 +03:00
Klimov Paul
928a30588d memory usage at unit test reduced 2017-04-13 17:00:59 +03:00
Klimov Paul
86bff27be5 compatibility with PHPUnit 6.x fix 2017-04-13 16:30:11 +03:00
Klimov Paul
8269b73b45 compatibility with PHPUnit 6.x fix 2017-04-13 16:22:43 +03:00
Klimov Paul
d8e6a89af9 fixed tests without assettions 2017-04-13 16:17:35 +03:00
Klimov Paul
679bc09b54 compatibility with PHPUnit 6.x fix 2017-04-13 15:46:17 +03:00
Klimov Paul
80ca12872e garbage collection added to unit tests 2017-04-13 15:40:17 +03:00
Klimov Paul
04a14efd3f compatibility with PHPUnit 6.x fix 2017-04-13 15:29:10 +03:00
SilverFire - Dmitry Naumenko
b0b55472da yii\caching\Cache::getOrSet() now supports both Closure and callable
Closes #13981
2017-04-13 15:07:30 +03:00
Klimov Paul
15561b7a2c unit test fix 2017-04-13 14:56:03 +03:00
Klimov Paul
dee88787fc compatibility with PHPUnit 6.x added 2017-04-13 14:49:43 +03:00
Klimov Paul
5d4a7a588d compatibility for PHPUnit adjusted 2017-04-13 11:44:25 +03:00