Commit Graph

4540 Commits

Author SHA1 Message Date
jaaf
677cd75c71 Translated caching-fragment.md into FR [skip ci] (#13633) 2017-02-21 12:04:46 +03:00
Bob Olde Hampsink
30b7fc8dc1 Fixes #13577: yii\db\QueryBuilder::truncateTable should work consistent over all databases 2017-02-20 23:38:50 +03:00
jaaf
dc175ae130 Translated caching-data.md into FR [skip ci] (#13626) 2017-02-20 12:33:36 +03:00
jaaf
7eb2763b00 New caching-overview.md fr [skip ci] (#13609) 2017-02-18 23:50:41 +03:00
Derek Gifford
bb55311068 Clarified about calling phpunit under Windows in git-workflow.md [skip ci] 2017-02-18 21:45:35 +03:00
SilverFire - Dmitry Naumenko
5e987b0b9b Fixed anchor in docs 2017-02-17 09:15:57 +02:00
Dmitry Naumenko
fc9e153d46 Merge pull request #13595 from w3lifer/patch-1
fix anchor
2017-02-17 09:14:36 +02:00
Nobuo Kihara
f18e55c1f0 docs ja translation updated [ci skip] 2017-02-17 14:58:32 +09:00
Roman Grinyov
2e32e97c02 fix anchor
http://www.yiiframework.com/doc-2.0/guide-db-migrations.html#creating-migrations
2017-02-16 23:30:45 +03:00
LingGang Xiao
c3d1a189e4 fix a bit translate error (#13583) [skip ci]
fix a bit translate error according to English text
2017-02-15 12:15:11 +03:00
Alexander Makarov
39d3316e65 Rereferenced OCI PDO emulation from docs [skip ci] 2017-02-15 11:58:45 +03:00
Alexander Makarov
7db178d8bb Fixes #13526: added reference to loading default values from schema to DefaultValueValidator section of validation guide [skip ci] 2017-02-14 20:50:26 +03:00
Arthur Khachaturov
3575cc736f Update structure-assets.md (#13558) [skip ci] 2017-02-11 23:29:09 +03:00
Alexey Rogachev
7cceacc0ed Disable timeout completely for JS tests (#13557) 2017-02-11 20:10:42 +01:00
Carsten Brandt
bf13f01b85 fixed some guide issues 2017-02-10 23:30:53 +01:00
Carsten Brandt
7e8d9c5c5f added note about protocol relative URL pattern to the guide 2017-02-08 12:28:07 +01:00
Nobuo Kihara
a941b3536f docs/internals-ja updated [ci skip] (#13532) 2017-02-07 14:01:20 +03:00
Nobuo Kihara
f482cb6b7f docs/guide-ja updated [ci skip] (#13503) 2017-02-03 11:25:29 +03:00
Alexander Makarov
93fbc55b23 Added edge case handling to aggregation example in docs [skip ci]
See https://github.com/yiisoft/yii2/issues/12491#issuecomment-276593948
2017-02-02 20:47:22 +03:00
Nobuo Kihara
a7518af30b docs/guide-ja updated [ci skip] (#13499) 2017-02-02 18:27:21 +03:00
Nobuo Kihara
e99deef49c docs/guide/structure-assets.md minor fixes [ci skip] (#13498) 2017-02-02 17:50:29 +03:00
crabkakcrab
a36d403403 Fixed mistake in Russian translation of concept-di-container.md (#13496) [skip ci] 2017-02-02 15:04:41 +03:00
Alexander Makarov
72a690216a Fixes #13466: Added info about generating migration which adds multiple columns at once [skip ci] 2017-02-01 01:17:27 +03:00
Carsten Brandt
1e4484748b Merge pull request #13477 from yiisoft/urlmanager-test
Refactored UrlManagerTest to cover more use cases
2017-01-31 11:54:03 +01:00
Alexander Makarov
0f62d26e2c Fixed typo [skip ci] 2017-01-31 12:57:11 +03:00
Alexander Makarov
38a61749ca Fixed typo [skip ci] 2017-01-31 12:26:57 +03:00
Evgeniy Moiseenko
359c1b3d4c Update link (#13480) [skip ci] 2017-01-31 11:59:12 +03:00
Nobuo Kihara
d24f1ff460 docs/guide-ja/runtime-routing.md updated [ci skip] (#13479) 2017-01-31 11:53:06 +03:00
Nobuo Kihara
aa00aada82 docs/guide-ja/security-best-practices.md updated [ci skip] (#13481) 2017-01-31 11:52:35 +03:00
Carsten Brandt
8faedcbd7c Refactored UrlManagerTest to cover more use cases
UrlManager is a complex class with a large bunch of options that needs
to be tested
and we had a few regressions in the past even though there are already a
lot of tests
covering it. Test coverage measured by lines does not help us determine
how good it is tested,
we need test coverage for every major path through the code.

I have refactored the UrlManager tests to reflect the different options
and cases to
have a better overview of which cases are covered and which are not.

UrlManager has two main operation modes:

- "default" url format, which is the simple case. These are covered by
  methods in `UrlManagerTest`.

- "pretty" url format. This is the complex case, which involves UrlRules
  and url parsing.
  I have created two separate classes for this case:
  Url creation for "pretty" url format is covered by
`UrlManagerCreateUrlTest`.
  Url parsing for "pretty" url format is covered by
`UrlManagerParseUrlTest`.

Each of the test classes have a `getUrlManager` method that creates a
UrlManager instance
with a specific configuration and certain variations in options.
It is also tested that options that are not relevant in a certain
operation mode have no effect on the result.

To make sure to not remove tests that have existed before, here is a map
of where code has been moved.
The following test methods existed in the [old test
class](4187718c14/tests/framework/web/UrlManagerTest.php):

- `testCreateUrl()` split between UrlManagerTest and
  UrlManagerCreateUrlTest variations should all be covered by
`variationsProvider()`.
- `testCreateUrlWithNullParams()` covered by UrlManagerCreateUrlTest by
  `testWithNullParams()`
- `testCreateUrlWithEmptyPattern()`
- `testCreateAbsoluteUrl()` covered in UrlManagerCreateUrlTest by new
  tests via `variationsProvider()`.
- `testCreateAbsoluteUrlWithSuffix()` covered in UrlManagerCreateUrlTest
  by `testAbsolutePatterns`.

- `testParseRequest()` covered by UrlManagerParseUrlTest, UrlNormalizer
  related parts moved to UrlNormalizerTest.
- `testParseRESTRequest()` moved to UrlManagerParseUrlTest
- `testHash()` covered in different tests in UrlManagerCreateUrlTest.
- `testMultipleHostsRules($host)` kept as is.

Before:

    $ vendor/bin/phpunit tests/framework/web/UrlManagerTest.php
    ...
    OK (12 tests, 89 assertions)

After:

    $ vendor/bin/phpunit tests/framework/web/UrlManager*.php
    ...
    OK (72 tests, 648 assertions)
2017-01-31 02:38:35 +01:00
Nobuo Kihara
7988331e65 dosc/guide-ja updated [ci skip] (#13471)
* doc/guide-ja updated [ci skip]

* docs/guide-ja updated [ci skip]

* docs/guide-ja/db-migrations.md updated [ci skip]
2017-01-30 13:46:52 +03:00
Nobuo Kihara
a3a868e427 docs/guide fix [ci skip] (#13470)
* docs/guide/runtime-sessions-cookies.md typo fix [ci skip]

* docs/guide/tutorial-core-validators.md typo fixed [ci skip]
2017-01-30 11:39:14 +03:00
Nobuo Kihara
015f14e374 Docs ja update 0127 [ci skip] (#13463)
* docs/guide-ja/intro-yii.md, docs/guide-ja/output-client-scripts.md updated [ci skip]

* docs/guide-ja/output-data-providers.md and output-data-widgets.md updated [ci skip]

* docs/guide-ja updates (WIP) [ci skip]
2017-01-28 18:32:23 +03:00
Nobuo Kihara
8803496cf5 docs/guide/output-data-widgets.md typo fix [ci skip] (#13459) 2017-01-28 11:45:51 +03:00
Nobuo Kihara
9deb24e262 docs/guide/output-client-scripts.md typo fix [ci skip] (#13455) 2017-01-27 17:00:17 +03:00
Alexander Makarov
7d12ae80ee Added info about using your own forks when contributing to extensions and apps 2017-01-25 21:39:01 +03:00
Alexander Makarov
3f66fb6cdf Suggest latest PHP 7 usage in the guide [skip ci] 2017-01-18 19:00:50 +03:00
Nobuo Kihara
1708f38b13 docs/guide-ja some files updated [ci skip] (#13396) 2017-01-16 17:27:14 +03:00
Arthur Khachaturov
21eff20fcf Fixed typos in docs/internals/core-code-style (#13391) [skip ci] 2017-01-15 17:01:37 +03:00
alchimik
96069b341a fixed some links in doc (#13390) 2017-01-14 21:37:31 +01:00
Alexander Makarov
4c2e5119b6 Fixes #13387: Extracted "Custom validator for multiple attributes" into community cookbook 2017-01-14 13:09:49 +03:00
Dmitry Naumenko
6a8b22f87a Fixed typos in guide-ru/db-migrations 2017-01-14 10:24:35 +02:00
Klimov Paul
25a7ed60e7 Docs about namespaced migrations fixed 2017-01-10 14:22:50 +02:00
Nobuo Kihara
92270bcd24 docs/guide-ja updated [skip ci] (#13342)
* docs/guide-ja/caching-data.md updated

* docs/guide-ja/caching-fragment.md updated

* docs/guide-ja/concept-configurations.md updated

* WIP

* docs/guide-ja/concept-di-container.md updated

* docs/guide-ja/db-active-record.md updating WIP

* docs/guide-ja/db-active-record.md updated

* docs/guide-ja updating (WIP) [skip ci]
2017-01-07 20:05:18 +03:00
Bizley
b113ad460a Docs about cache key limitation (#13341) [skip ci] 2017-01-07 17:48:00 +03:00
Nobuo Kihara
11f8078ec4 docs/guide/db-migrations.md readability improved [skip ci] 2017-01-07 10:43:27 +09:00
Nobuo Kihara
30cb2454ea Japanese documentation updates (#13337) [skip ci] 2017-01-06 20:56:24 +03:00
Nobuo Kihara
8e12383048 docs/guide/db-active-record.md typo fix (#13335) [skip ci] 2017-01-06 16:27:36 +03:00
Carsten Brandt
4f59ec2f5b Update concept-di-container.md 2017-01-06 13:57:49 +01:00
Nobuo Kihara
b37598d0ee docs/guide/concept-di-container.md typo fix (#13331) [skip ci] 2017-01-06 08:14:20 +03:00