18925 Commits

Author SHA1 Message Date
0602b06c8d Improves readability, updates topics and fixes broken links (#17096) [skip ci] 2019-02-02 19:31:58 +03:00
39d3b6519c prepare for next release 2019-01-31 00:54:44 +01:00
ed64d65886 release version 2.0.16 2.0.16 2019-01-31 00:54:16 +01:00
768d590eef added missing @since annotations 2019-01-31 00:45:25 +01:00
1128a6d609 added missing documentation 2019-01-31 00:20:44 +01:00
6fe809ea26 added test case for checking BC of #16772 and #14759 2019-01-30 23:59:09 +01:00
31d3850a13 Fix typos in docs (#17084) [skip ci] 2019-01-30 01:06:13 +03:00
6bd04093db Sync french translations (#17081) 2019-01-29 10:56:22 +03:00
0d39d1cd4d Updated framework package composer.json 2019-01-29 00:36:14 +03:00
e4eaccc14d Merge branch 'security' 2019-01-28 22:50:38 +02:00
353cc7ac92 PL messages update (#17078) [skip ci] 2019-01-28 14:00:03 +03:00
3d0ec35865 Updated Russian translation strings 2019-01-28 01:12:51 +03:00
cfeab6ee9b docs/guide-ja/security-cryptography.md typo fixed [ci skip] (#17074) 2019-01-27 13:29:26 +03:00
5544d31bb3 Fix #17049: Use var instead of let (#17055) 2019-01-21 15:21:47 +03:00
de5b903806 Fixed regression in #16817 (#17056) 2019-01-21 15:20:43 +03:00
09914bad87 docs/guide-ja updated [ci skip] (#17054) 2019-01-20 18:34:56 +03:00
adf8f9a32f Fixes #15931: yii\db\ActiveRecord::findOne() now accepts quoted table and column names using curly and square braces respectively 2019-01-20 17:20:43 +03:00
b9ee17014e Removed wrong test addded in dfcf037c7 2019-01-20 13:54:31 +02:00
025dd072c6 Replaces commit dfcf037c7. The prvious idea was wrong and broke some tests 2019-01-20 13:50:27 +02:00
dfcf037c76 ActiveQuery::viaTable() now throws exception on wrongly prepared query
Closes #15876
2019-01-20 12:33:26 +02:00
3c091b802a When uses filter \yii\filters\PageCache, then yii\web\JsonResponseFor… (#17044)
* When uses filter \yii\filters\PageCache, then yii\web\JsonResponseFormatter sets Response::$content as null, howerer \yii\filter\PageCache has been restore content
2019-01-18 06:06:08 -05:00
7bf0562223 Various fixed for Arabic guide [skip ci] 2019-01-15 07:54:58 -05:00
659b3d4b77 Fixing DB session override problems
See #16959
2019-01-15 12:42:13 +02:00
4333b90186 Fixes #15482: AR::find()->with() missing data when using string identifiers for relations 2019-01-14 18:50:56 -05:00
63faf5f593 Fixes #16703: Updated upgrade notes mentioning important change made in 2.0.14 2019-01-15 02:37:35 +03:00
3a52578d4a Various docs fixes [skip ci] 2019-01-14 18:21:59 -05:00
7ccadb4a79 Fixes #15167: Fixed loading of default value current_timestamp() for MariaDB >= 10.2.3 2019-01-11 17:47:40 -05:00
c59df914c1 Fixes #16253: Fixed empty checkboxlist validation 2019-01-10 09:17:37 -05:00
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