18778 Commits

Author SHA1 Message Date
22d30f1999 Fixes #15286: Fixed incorrect formatting of time with timezone information 2019-01-09 09:59:56 -05:00
e3b7581bca Fixes #15145: Fixed Validator::skipOnEmpty documentation [skip ci] 2019-01-09 06:51:31 -05:00
f44266c946 Updated db-query-builder.md adding example for 'in' with composite columns (#17026) [skip ci] 2019-01-08 15:30:12 -05:00
e5ecea653f Fixed random fails of RetryAcquireTraitTest (#17024)
Property `RetryAcquireTrait::$retryDelay` sets the minimum delay, but not the exact delay. In fact, the delay may be longer. Because of this, sometimes less than 20 blocking attempts occur. Checking the exact number of locks sometimes leads to the following errors:
```
$ vendor/bin/phpunit --filter=testRetryAcquire
PHPUnit 4.8.34 by Sebastian Bergmann and contributors.

F

You should really fix these slow tests (>500ms)...
 1. 1050ms to run yiiunit\framework\mutex\RetryAcquireTraitTest:testRetryAcquire

Time: 4.08 seconds, Memory: 44.00MB

There was 1 failure:

1) yiiunit\framework\mutex\RetryAcquireTraitTest::testRetryAcquire
Failed asserting that 19 is identical to 20.

/yii2/tests/framework/mutex/RetryAcquireTraitTest.php:36
/yii2/vendor/phpunit/phpunit/phpunit:52

FAILURES!
Tests: 1, Assertions: 3, Failures: 1.
```

I reworked the test so that it checks the duration of the delays, but not the exact number of blocking attempts.
2019-01-08 09:55:27 -05:00
108155ad1d Fixed nightly build (#17025) 2019-01-08 09:52:15 -05:00
ec1809bed2 Fix to do not delete used message files with nested category names (#17021) 2019-01-06 16:20:25 -05:00
b4cb42fb9d Fix of Oracle tests for proper skipping (#17019)
PHPUnit must get the data that will be passed to the tests, before executing them. That's why you can't prevent the dataProvider to be executed using `$this->markTestSkipped()` inside a test. Instead, you must use a skipping inside data provider when the test cannot be executed.

Now Oracle tests are skipped without fails when Oracle isn't installed:
```
$ vendor/bin/phpunit --filter=BuildLikeCondition --group=oci --verbose

...

There was 1 skipped test:

1) yiiunit\framework\db\oci\QueryBuilderTest::testBuildLikeCondition
Test for yiiunit\framework\db\oci\QueryBuilderTest::testBuildLikeCondition skipped by data provider
Could not execute Connection::quoteValue() method: Connection::dsn cannot be empty.
```
2019-01-05 16:52:01 -05:00
92c66758de Added tests for DateValidator when no time is specified for 'format' (#17018)
Related issues:
* #10737
* #14299
* #14795
2019-01-04 18:45:49 -05:00
36ed136caf Issue #14388: test of dependent ActiveFixtures loading (#17012) 2019-01-04 09:24:38 -05:00
4584487126 Fixes DateValidatorTest for ICU 55.1 (#17013)
I have installed ICU of version `55.1` and tests fail on it. That's because 'short' datetime format has been changed earlier - starting with version 55.1

See for example Symfony changes for ICU 55: 4f224ef4ab (diff-564fc4b01393077657880495f2be7b17R54)
2019-01-04 05:38:10 -05:00
a140b2b468 Fixes #16991: Removed usage of utf8_encode() from Request::resolvePathInfo() 2019-01-03 17:36:16 -05:00
4c88805f85 Translated Yii2 core messages in Bulgarian language (#17010) [skip ci] 2019-01-03 15:21:29 -05:00
a790685e66 Fixes #16974: Regular Expression Validator to include support for 'u' (UTF-8) modifier 2019-01-03 15:12:42 -05:00
e0e73cf5b5 Minor cleaning of .gitignore files in tests folder (#17007)
1) `/runtime/cache/*` already ignored by file `/tests/runtime/.gitignore`
2) `/tests/runtime/assets/` already stays in place due to file `/tests/runtime/asstes/.gitignore`
2019-01-03 14:15:47 -05:00
bc9f8bd8a3 Fixes CommandTest::testCreateView() cleanup logic (#17006)
View must be deleted before deleting the tables on which it depends, otherwise we will get errors when rerunning the tests in the same environment.

For example:
```
1) yiiunit\framework\db\mysql\CommandTest::testCreateView
yii\db\Exception: SQLSTATE[HY000]: General error: 1356 View 'yii2_test.testCreateView' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
The SQL being executed was: SHOW FULL COLUMNS FROM `testCreateView`
```
2019-01-03 14:15:06 -05:00
1a34f61e56 Fixes #16941: Set yii\console\controllers\MigrateController::useTablePrefix to true as default value 2019-01-03 12:16:42 -05:00
966f262016 Fixes AssetBundleTest for vagrant ENV (#17003)
1. There is no need to use setUp/tearDown just for one TestCase method.
2. Previous implementation of testBasePathIsWritableOnPublish() doesn't work in vagrant environment using shared files because of unreliable chmod.

So, this implementation is more versatile and optimized.
2019-01-02 18:45:40 -05:00
a4b12b14ca Removed unneeded changelog line [skip ci] 2019-01-03 00:51:41 +03:00
66ecd6b5b6 Merge pull request #16998 from GHopperMSK/16966-add-array_expression-support-to-relation-data
Add ArrayExpression support in related tables
2019-01-02 18:26:04 +02:00
698e45ac1e Fixed code style 2019-01-02 18:24:16 +02:00
a5182e5d5e Merge branch 'master' of git://github.com/yiisoft/yii2 into 16966-add-array_expression-support-to-relation-data 2019-01-01 22:33:52 +03:00
e1623868f9 Fixes #16891: Fixed Pagination::totalCount initialized incorrectly 2019-01-01 13:24:14 -05:00
d02fb4e3dd Reduce the Cyclomatic Complexity level 2019-01-01 13:01:12 +03:00
a7771acd8d Add ArrayExpression support in related tables 2019-01-01 02:39:55 +03:00
379a2002dd Issue #14609: test case for further discussion (#16990) 2018-12-31 07:04:08 -05:00
7d494d0d24 Fixes #16028: Fix serialization of complex cache keys that contain non-UTF sequences 2018-12-31 06:54:19 -05:00
2b79a0c5ba Fixes #16945: Fixed RBAC DbManager ruleName fetching on the case of PDO::ATTR_ORACLE_NULLS => PDO::NULL_TO_STRING 2018-12-31 06:43:07 -05:00
b128ec85f4 Fixes #16081: Fixed composite IN using just one column 2018-12-31 06:41:25 -05:00
ebb5976a22 Fixes #16926: Fix shell autocompletion 2018-12-31 06:34:01 -05:00
5250197d3b Fixed typo in MessageController docs [skip ci] (#16982) 2018-12-30 16:38:39 -05:00
8a641a99b8 Update ROADMAP.md (#16992) [skip ci] 2018-12-30 15:02:42 -05:00
3c1f1e4dcc Disabled deprecated warnings for PHP 7.3 tests (#16997) 2018-12-30 15:01:03 -05:00
572e5f6655 Fixes #15850: check basePath is writable on publish in AssetManager 2018-12-16 01:54:00 +03:00
Sam
197feeb255 Fixes #16969: Fix yii\filters\PageCache incorrectly storing empty data in some cases 2018-12-14 19:52:34 +03:00
d1c3dac0f7 docs/guide-ja/start-installation.md updated and translators.json added [ci skip] (#16964) 2018-12-13 16:43:38 +03:00
c162bd7ae7 Fixes #16910: Fix messages sorting on extract 2018-12-12 22:57:24 +03:00
d07e286dbd fix syntax error in fr and es guide
these were failing the PDF build
2018-12-12 09:29:34 +01:00
f79d3d7edc Fix syntax errors in Chinese guide
these were failing the PDF build.
2018-12-12 09:02:15 +01:00
1cf22d0252 Fixed grammatical error (#16957) [skip ci] 2018-12-11 16:16:47 +03:00
429ddbdf64 Непонятно какой параметр 'r' (#16958) [skip ci]
Очень далек от контекста. Я сразу не понял о каком параметре речь
2018-12-10 23:59:57 +03:00
1db55e6b0d Normalizing string numeric (#16943) 2018-12-10 11:50:50 +03:00
3221ab0769 Fix #15683: Fix file as array uploading in MultipartFormDataParser (#16950) 2018-12-10 11:49:36 +03:00
b5be47321b Fixes #16469: Allow cache to be specified as interface and to be configured in DI container 2018-12-10 11:41:45 +03:00
4656e2dcdc Added "start looking ahead" to ar guide translation (#16952) [skip ci] 2018-12-10 11:36:58 +03:00
712b6accce Fixes #16687: Add missing translations for nl-NL durations used in yii\i18n\Formatter::asDuration() 2018-12-08 01:08:43 +03:00
bd3193a52a Fixed typo (#16947) [skip ci] 2018-12-07 18:39:12 +03:00
2fab70731a Added gii translation for ar language (#16942) [skip ci] 2018-12-06 23:09:53 +03:00
4d3a140482 Fixed additional regression in number formatting
Related to https://github.com/yiisoft/yii2/issues/16934
2018-12-06 17:35:30 +02:00
bca1e88fbd Fix Apache URL rewriting (#16936) 2018-12-05 13:20:35 +03:00
db1d730695 Fixes #16822: Create config dir recursively in message/config 2018-12-05 01:37:12 +03:00