Commit Graph

3198 Commits

Author SHA1 Message Date
hhniao
d2423cd6ca Fixes #15301: Fixed ArrayHelper::filter() to work properly with 0 in values 2017-12-08 16:34:29 +03:00
Pavel Dovlatov
b20d2692a1 More tests for Console helper (#15285)
* Adding some tests for \yii\helpers\BaseConsole

BaseConsole::input()
BaseConsole::output()
BaseConsole::error()
BaseConsole::prompt()
BaseConsole::confirm()
BaseConsole::select()

* Simplify Console helper stub for obviousness

* Linking to \yii\helpers\Console instead of \yii\helpers\BaseConsole
2017-12-06 12:51:02 +03:00
IceJOKER
01ff1f6593 Fixes #15142: Fixed array params replacing in yii\helpers\BaseUrl::current() 2017-12-02 08:26:55 +03:00
Gabriel Caruso
2992b9b09d Refactored tests with PHPUnit assert methods (#15260) 2017-11-30 22:10:31 +03:00
IceJOKER
8897ea7270 Fixes #15249: Controllers in subdirectories were not visible in commands list 2017-11-30 22:06:24 +03:00
bscheshirwork
ba38edd393 Fix last time driver use if not support any (#15246) 2017-11-29 22:38:34 +03:00
bscheshirwork
a6b01a7d1e Сhanges in test case naming (#15228) 2017-11-27 23:34:10 +03:00
Brandon Kelly
0948109a19 Fixes #15221: Console improvements 2017-11-26 14:43:05 +08:00
Dmitry Dorogin
5ebf98cc1d Fixes #5515: Added default value for yii\behaviors\BlameableBehavior for cases when the user is guest 2017-11-25 20:39:17 +08:00
Sergey Makinen
b7d5393a08 Fixes #15194: Fixed yii\db\QueryBuilder::insert() to preserve passed params when building a INSERT INTO ... SELECT query for MSSQL, PostgreSQL and SQLite 2017-11-24 15:19:34 +07:00
Carsten Brandt
d50822dfa5 test case for #15172 2017-11-17 22:35:35 +01:00
Tobias Munk
821b007698 Updated base-image for dockerized tests, examples, GitLab config (#15181) 2017-11-17 22:35:05 +03:00
Dmitry Dorogin
bce830a8b0 Fixed tests for PHP 7.2 #15154 (#15171) 2017-11-17 10:31:03 +03:00
Nikolay Oleynikov
75dbdb0083 Fixes #14568: Refactored migration templates to use safeUp() and safeDown() methods 2017-11-15 00:49:40 +03:00
Mikk Tendermann
c009b06114 Fixes #14604: Fixed yii\validators\CompareValidator compareAttribute does not work if compareAttribute form ID has been changed 2017-11-15 00:43:14 +03:00
Nikolay Oleynikov
48bf8ce048 Fixes #14662: Added support for custom Content-Type specification to yii\web\JsonResponseFormatter 2017-11-15 00:39:32 +03:00
Elvira Sheina
10e7b1b541 Fixes #14276: Fixed I18N format with dotted parameters 2017-11-15 00:26:10 +03:00
Alex
988440caae Add test for Yii::createObject(); (#15129) 2017-11-15 00:24:05 +03:00
Sergey Makinen
85b65c889a Fixes #15117: Fixed DB schema cache did not honor table prefixes 2017-11-11 23:42:41 +03:00
Sergey Makinen
4e176ca325 Fixes #15108: Fixed yii\db\Schema::getSchemaNames() for MSSQL and added tests for all DBMSes 2017-11-07 19:20:14 +03:00
Roman Ishchenko
b354b26d03 Fixes #15081: Fixed "Undefined offset: 1" in log Target 2017-11-03 21:51:49 +03:00
Alexander Makarov
3dd55954e8 Fixed tests 2017-11-03 01:27:13 +03:00
Elvira Sheina
13cd7d7ee0 Fixes #6588: Fixed changing array keys after validation of multiple files in yii\validators\FileValidator 2017-11-01 12:26:25 +03:00
SilverFire - Dmitry Naumenko
5c6ba33e55 Disabled only PgSQL tests of DbSession in HHVM 2017-11-01 08:05:02 +02:00
SilverFire - Dmitry Naumenko
0dede3922d Disabled DbSession tests for HHVM 2017-11-01 07:39:41 +02:00
Alexander Makarov
fb23b0d0ea Code style fixes 2017-11-01 02:43:02 +03:00
SilverFire - Dmitry Naumenko
4831263716 Fixed tests for HHVM and PHP 5.4 2017-10-31 23:23:51 +02:00
SilverFire - Dmitry Naumenko
993eb5dcf8 Fixed RBAC tests
Before the fix, in case when RBAC tests for PgSQL and MySQL are runed
in same process sequentially, the second one reused old DB connection
creating mess in DBMS. Ha, see the rhyme: Creating mess in DBMS. :D
2017-10-31 22:00:36 +02:00
Dmitry Naumenko
2faf771118 Fixes #13436: Fixed migration for MSSQL DbSession 2017-10-31 12:50:37 +03:00
SilverFire - Dmitry Naumenko
c0d8b0a817 Fixed sqlite tests
Prevent marking some tests as risky
2017-10-30 22:13:17 +02:00
SilverFire - Dmitry Naumenko
06d7a1f0c6 Improved ConnectionTest performance
Methods testMastersShuffled and testMastersSequential executed about 30 seconds each.
This commit reduces execution time to 2-5 seconds each.
2017-10-30 20:34:35 +02:00
SilverFire - Dmitry Naumenko
dbe7f7cac0 Disabled slow test on Travis 2017-10-30 19:50:03 +02:00
Carsten Brandt
e311001ef5 #14543: Adjusted implementation of migration name length limit 2017-10-27 00:20:37 +03:00
SilverFire - Dmitry Naumenko
336404e0b9 PHP7.2RC5: enabled INTL tests, continue disabling some cases in FileValidator 2017-10-26 12:29:48 +03:00
Alexander Makarov
376006a2d5 Data filter enhancements and docs
- Added docs.
- Moved to "data" namespace.
- Moved messages to "yii" category.
- Added Russian messages translation.
2017-10-26 11:32:52 +03:00
Dmitry Dorogin
614fb52c45 Fixes #14543: Throw exception when trying to create migration longer than 255 symbols 2017-10-23 23:21:44 +03:00
Dmitry Naumenko
7e7faeebd1 Fixed excess escaping in Command::batchInsert() (#13236) 2017-10-23 22:43:39 +03:00
Dmitry Naumenko
64d8af61a6 Fixes for PHP 7.2 compatibility (#14959) 2017-10-19 01:54:40 +03:00
Pavel Chaplygin
d49ec7b8be Fixes #14633: Add miliseconds to log time in \yii\log\Target 2017-10-18 17:53:10 +03:00
Klimov Paul
560d5b53e7 unit test fix 2017-10-10 12:42:06 +03:00
Paul Klimov
744b87fabc Fixes #4479: Implemented REST filters 2017-10-09 00:01:58 +02:00
Herbert Maschke
c9de616b4c Fixes #13403: Added 'permissions' additionally to 'roles' in yii\filters\AccessRule in order to be able to specify these separately 2017-10-08 23:50:59 +02:00
SilverFire - Dmitry Naumenko
ea2c475ea7 Moved HTTP_AUTHORIZATION header check to \yii\web\Request, added docs
Closes #13564
2017-10-08 23:22:11 +03:00
Robert Korulczyk
c78201899b Fixes #13720: Improve yii\helpers\FormatConverter::convertDatePhpToIcu() to handle escaped chars correctly 2017-10-08 18:07:26 +02:00
SilverFire - Dmitry Naumenko
0b2e79eac5 Fixed BasicHttpAuth to respect HTTP_AUTHORIZATION header
Closes #13564
2017-10-08 11:25:50 +03:00
Alexander Makarov
afd59a18ec Merge branch 'master' into indexby-after-relations-9342 2017-10-08 00:52:14 +02:00
Robert Korulczyk
f5c98f9664 Fixed tests for HHVM (#14941) 2017-10-07 20:13:11 +02:00
Marko Kruljac
22d453faac Fixes #14134: Fixed multiple validateAttribute() calls when scenarios() returns duplicate attributes 2017-10-07 19:40:06 +02:00
Robert Korulczyk
59b635c2a6 Fixes #14921: Fixed bug with replacing numeric keys in yii\helpers\Url::current() 2017-10-07 18:47:31 +02:00
Alexander Makarov
f5591bb70e Closes #13792: added test verifying unused messages are not removed 2017-10-06 22:59:04 +01:00