SilverFire - Dmitry Naumenko
b4c7aaa5e0
Added more examples to EmailValidatorTest
...
Closes #9201
Closes #9067
8 years ago
SilverFire - Dmitry Naumenko
1dc4618f3d
Fixed `MessageConstroller::saveMessagesToDb()` to work on different DBMS correctly
...
Closes #13494
8 years ago
SilverFire - Dmitry Naumenko
e9a96ee834
Replced InvalidParamException with \yii\console\Exception in Request::resolve()
8 years ago
SilverFire - Dmitry Naumenko
86b08e29d2
Enhanced `yii\console\Request::resolve()` to prevent passing parameters, that begin from digits
...
Closes #8641
8 years ago
SilverFire - Dmitry Naumenko
f496567735
Fixed `yii\web\CacheSession::destroySession()` to work correctly when session is not written yet
...
Fixes #13537
8 years ago
Bob Olde Hampsink
fab53b4a6e
Fixes #13582 : Added tests for all `yii\db\QueryBuilder::resetSequence` implementations, fixed SQLite implementation
8 years ago
Bob Olde Hampsink
56c65f6079
Fixes #13577 : Implemented `yii\db\mssql\QueryBuilder::resetSequence()`
8 years ago
Nikolay Oleynikov
7d82bbcd37
Fixes #13467 : `yii\data\ActiveDataProvider` no longer queries models if models count is zero
8 years ago
Robert Korulczyk
bf841b926d
Additional tests.
8 years ago
Robert Korulczyk
8d4a197d19
Fix bug with creating URL in UrlRule with optional params at the beginning of pattern.
8 years ago
Robert Korulczyk
5d81af21fb
Fix bug with optional params at the beginning of pattern in UrlRule.
8 years ago
Dmitry Klyukin
ecd2dc0d1b
Model loadMultiple test ( #13585 )
8 years ago
Nikolay Oleynikov
323568c2e9
Remove trailing spaces from sources and tests ( #13621 ) [skip ci]
8 years ago
Sergey Makinen
ef4dadf437
Fixes #13592 : Fixes Oracle’s `yii\db\oci\Schema::setTransactionIsolationLevel()`
8 years ago
Kolyunya
edc7a55692
Add a failing test to the `yii\web\UrlRule`
8 years ago
Nikolay Oleynikov
e8f8ba2129
Remove excessive `use` statement ( #13604 )
8 years ago
Boudewijn Vahrmeijer
45d670c995
Update ConnectionTest.php
8 years ago
Nikolay Oleynikov
a26d28f8e3
Fixes #13576 : Added support of `srcset` to `yii\helpers\Html::img()`
8 years ago
Tobias Munk
9f95f71572
added groups to tests
8 years ago
Carsten Brandt
22972b86db
update date formatter test for intl
...
some tests where not run with intl extension enabled.
8 years ago
Bizley
54278fc842
asTime fixed for time-only values
...
close #13348
fixes #13343
8 years ago
Tobias Munk
ec8daa0d77
added db group to test
8 years ago
Elvira Sheina
3a4505ac08
Fixes #11230 : Include `defaultRoles` in `yii\rbac\DbManager->getRolesByUser()` results
8 years ago
Vovan-VE
3538bde085
Add test case for #13340 and update CHANGELOG
8 years ago
Paul Klimov
95b7ffc066
Fix #13278 : `DbQueryDependency` created ( #13384 )
...
`DbQueryDependency` created
8 years ago
Carsten Brandt
e82b40abee
avoid duplicate slashes on empty values
...
fixes #13522
close #13525
8 years ago
Carsten Brandt
456d23272c
added failing test for #13522
...
regression after 2.0.11 release.
8 years ago
Carsten Brandt
fba4e43469
added failing test for #13533
...
issue #13533
PR #13534
8 years ago
Robert Korulczyk
4c46c6a096
Improve messages test on HHVM. ( #13520 )
8 years ago
Carsten Brandt
25b78aa615
Fixes #13508 : Fixed duplicate attachment of behavior BC break
...
Fixes BC break introduced in
954c771fdb
?diff=split#diff-d45d5e14cbb9739c2e1c63b53ba5e363L669
8 years ago
Bizley
1749c46c5d
Fixes #11502 : Fixed `yii\console\controllers\MessageController` to properly populate missing languages in case of extraction with "db" format
8 years ago
Carsten Brandt
a7f8d0efb4
added test for #12697
8 years ago
ErickSkrauch
c641513583
Implementation of support UrlRule with relative host definition
...
close #12697
fixes #12691
8 years ago
Elvira Sheina
d39c491022
Fix BC breaking #13475 ( #13478 )
8 years ago
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)
8 years ago
Carsten Brandt
4187718c14
added missing groups to tests
8 years ago
PowerGamer1
37b8cbb2d0
Fixes #12758 : Added the ability to use instances of `\yii\db\Query` class as values in the `\yii\db\QueryBuilder::insert()` method
8 years ago
Alexander Makarov
c4175be7a3
Adjusted command test for incorrect inserts to use data provider
8 years ago
voroks
25f08afc96
Fixes #8293 : `yii\db\Query` can be passed to `insert` method in `yii\db\QueryBuilder`
8 years ago
Alexander Makarov
1cc327f108
Run common batch insert tests for SQLite
8 years ago
Dmitriy Bashkarev
be4ebdd049
Fixes #13134 : Added logging URL rules (bashkarev)
8 years ago
Herbert Maschke
d4d6c1dabf
Tests for 13393 ( #13439 )
...
* add some unit tests regarding redirection for ResponseTest
* also tests yii\web\controller redirect
8 years ago
Herbert Maschke
a6da9d5da8
Added unit tests regarding redirection for ResponseTest ( #13437 )
8 years ago
Klimov Paul
c73de31a90
Fixed `yii\web\MultipartFormDataParser` adds an extra newline to every value
8 years ago
Robert Korulczyk
507cc52658
Allow omit default params on URL creation
...
Fixes #10970
8 years ago
Elvira Sheina
b82caa97e8
Fixes #7820 : Add `or` relation for `targetAttribute` in `yii\validators\UniqueValidator`
8 years ago
SilverFire - Dmitry Naumenko
3d549374bf
Added BlameableBehaviorTest
8 years ago
Tobias Munk
f5ab85c393
updated debug settings (+56 squashed commits)
...
Squashed commits:
[c42f30c] updated base image, added docs & local test script
[88f0c40] debug
[6220c94] fixed network isolation
[c63c7c3] test mssql only on test/mssql branch
[74efc78] fixed isolation in after_script
[02b895b] updated test setup
[3335f39] updated retry
[bd123b2] updated service checks
[45e4c90] updated build
[d54da7a] updated after_script
[5a4c726] 🏭 wait for mysql
[08db878] fixed typo
[ea53c1e] updated build stages
[9807ce3] fixed typos
[cf9f64e] fixed mssql testing
[08001d6] added db create for mssql
[62f6b65] run travis (gitlab simulation) only in travis branch
[cf63da4] streamlined build
[76808ac] updated test jobs
[18d79b5] fixed test error
[7b2bce6] updated build & composer.lock
[244623a] updated build
[86bd71b] fixed cleanup
[86ab2e8] fixed cleanup
[091d4b8] fixed tests
[2d315b5] fixed build config
[2913644] fixed project names
[f53b823] refactored build config
[5a791fb] refactored docker db-tests
[b4479b0] revert
[a975fa5] updated gitlab build
[4e4e5e4] updated mssql setup
[d6ff03b] added sleep workaround
[578b102] removed host volumes in test
[928f50b] fixed path
[967ab10] updated tests
[520f317] bootstrap cubrid
[5f245e1] 🏭 fixed cubrid tests
[940dbbc] 🏭 pinned cubrid version 9.3.6.0002
[8d5ea69] 📝 dockerized test commands
[9954b54] updated cubrid
[fb3afac] updated docs
[3f63ced] updated isolation
[bdc3c83] 🏭 build cubrid
[b777911] 🏭 disabled mssql, updated cubrid
[36534e7] added travis-a-like stage
[6546f02] updated GitLab build
[c046096] updated test setup
- added mssql and cubrid stack
[5a0e635] disabled host-volume
[75cf342] fixed test
[8de0794] fixed testing
[465d27a] added stages
[63aa950] added script
[68eecef] fixed typo
[00e4b88] updated Docker build
[f9072cc] added dockerized test setup
8 years ago
João Pedro Pereira
3692941ead
Fixes #11464 : Foreign key name is not provided by schema
8 years ago
Klimov Paul
d4ac47abe7
Added `yii\validators\EachValidator::$stopOnFirstError` allowing addition of more than one error
8 years ago