429 Commits

Author SHA1 Message Date
6df20a0e7e adjusted test data to make existing relation tests fail
some tests accidentally passed because they matched the primary key
which is named `id` in all tables against similar primary key values.
as soon as primary key values differ among tables, these tests are
failing.

reproduce #5341 on existing tests...
2016-07-05 19:59:14 +02:00
4c49f0f456 test for eager loading when there are 3 tables between the relation using via() to link it 2016-07-04 15:35:50 +02:00
bfba387653 Merge branch 'master' of github.com:yiisoft/yii2
* 'master' of github.com:yiisoft/yii2:
  Fixes #11212: Added headers to PO file in `yii\i18n\GettextPoFile::save()`
2016-07-04 15:13:25 +02:00
0f640c7138 Make sure inverseOf relations are also populated during dynamic relational queries
Refs #6347
2016-07-04 15:07:37 +02:00
8ca845b680 Fixes #11212: Added headers to PO file in yii\i18n\GettextPoFile::save() 2016-07-04 15:13:38 +03:00
a46e88dea5 fixed inverseof test assertation
fixed wrong test to actually test what it should.
current assertation is a duplicate.

thanks to @laszlovl for spotting it.

pr #8497
2016-07-04 13:41:02 +02:00
07d3217706 added test for negative date formatter values
test for #9628
2016-07-04 12:42:09 +02:00
062895111f fixed php 7.1 test breaks that depend on ICU data version 2016-07-04 11:52:33 +02:00
5992eea571 Fixes #11808: _table and _column suffixes are now required when generating migration 2016-07-04 12:50:37 +03:00
b0bb8649a3 HHVM compatible fix for messageformatter error
fixes #11528
2016-07-04 11:01:24 +02:00
91f1ac1d99 fixed exception on malformed message in Messageformatter
this exception is thrown since PHP7
fix is compatible with older versions.

close #11644
fixes #11528
2016-07-04 10:42:39 +02:00
d219b17e65 Test for MessageFormatter with broken pattern
close #11644
2016-07-04 10:42:39 +02:00
d9122a74a9 improved tests and docs for #11857 2016-07-03 11:02:25 +02:00
30bb9bd7c8 Fixes #11462: Added support of filtering rules to yii\log\Target::$logVar, added \yii\helpers\BaseArrayHelper::filter() method 2016-07-03 01:56:05 +03:00
16e4cab8f1 Fixes #11865: Fixed setting selected for dropdown list using options 2016-07-03 01:43:50 +03:00
894f832dca #11857: Added test for AccessRule matching by verb 2016-07-02 20:42:52 +03:00
9cac1317b9 added test for #11801 2016-06-25 19:09:12 +02:00
17d08cc0a4 fixed crash on non-string input to CSRF token
fixes #11822

also adding proper unit tests for validate CSRF token.
2016-06-25 18:22:27 +02:00
099b364b14 Fixed #9574: Implicit run ColumnSchemaBuilder::null() when default value is set to null. (#11813) 2016-06-25 15:52:11 +03:00
104712103b Fixes #11693: Handle QueryBuilder::batchInsert() calls with no data to insert. (#11812) 2016-06-25 15:51:09 +03:00
dfa292652d Fixes #11561: Fixed DI container throwing exceptions for optional dependencies 2016-06-23 23:53:28 +03:00
b30b5a99ea Fixes #11672: Fixed yii\validators\NumberValidator erroring when value is an object without __toString() method 2016-06-23 23:32:25 +03:00
f0b9a0ee6b use the same db connection for reading and writing data
obviously the test should use the same db in both cases :-D
2016-06-20 23:28:15 +02:00
86f17c8dad added tests classes for db related tests 2016-06-20 23:07:07 +02:00
8ba032d147 refactored database tests
- changed test class naming for easier copying and searching of classes
- made base tests abstract and made MySQL an equal citisen in the test
  hierarchie
- added missing db specific test classes
2016-06-20 19:26:43 +02:00
4e3c9e4a98 fixed scalar value for IN condition
fixes regression from 2.0.8 #10961

fixes #11536
2016-06-20 15:20:21 +02:00
b45e5fbaf2 Unit test for #11549 2016-06-19 15:22:12 +03:00
239d7814eb Fixes #11739: Fixed ArrayHelper::index() losing precision for float keys 2016-06-19 15:00:46 +03:00
b39a0a1e5a Fixes #11774: Fixed incorrect recusuive symlinks check in FileHelper 2016-06-18 17:34:25 +03:00
bafc8b3325 Fixes #10422, #9574: New proposal fix for ColumnSchemaBuilder not null column
* Added ability to explicitly set column nullability #10422

* Removed isNull property.

* add since tag.
2016-06-18 15:03:55 +03:00
b211e6bf69 added failing test for #11686
test BaseArrayHelper::isIn() in strict mode
2016-06-09 13:08:26 +02:00
Sam
2ebccf0e73 Skip filehelper tests (and mark them as incomplete) when runtime is not a local file system. (#11713) 2016-06-07 12:58:35 +02:00
Sam
cf820a98d7 Fixed issue #11712: DbSessionTest is now skipped when SQLite is not available. (#11714) 2016-06-07 12:22:22 +02:00
7cea46bcb4 Changed SQLite fix #11652 according to https://github.com/yiisoft/yii2/pull/11653#issuecomment-224016289 2016-06-06 19:57:42 +03:00
0a60466729 Fixes #11527: Fixed bigPrimaryKey() for SQLite 2016-06-06 19:33:22 +03:00
fdbf7d85a1 Simple tests (#11606)
* method to simplify migrate/create tests
* use new assertion for all migration/create tests
* move the expected files to test/data/console
2016-05-24 09:35:23 +03:00
7249a6c99e Move Identity Cookie code into separate functions 2016-05-22 12:12:04 +03:00
77b29bf927 Added tests to ColumnSchemaBuilderTest in order to verify custom column types work OK 2016-05-22 12:03:44 +03:00
7e7db38011 Fix #11591 ActionFilter wildcard (#11594)
* Added support for wildcards for `only` and `except` at `yii\base\ActionFilter`
2016-05-20 11:04:17 +02:00
0ff6eeba7d Enhanced 9f499eb: yii\web\User::checkRedirectAcceptable() removed check for "*" type (invalid in accept header) 2016-05-16 01:11:47 +03:00
b976f638d8 Added test for PgSQL BIGINT column to ensure typecasting works OK
Closes #11286
2016-05-15 23:05:30 +03:00
9f499eb51e Fixed yii\web\User::checkRedirectAcceptable() to treat acceptable content type */* as *
Closes #11523
2016-05-15 22:27:40 +03:00
c3c0d04f5b Merge pull request #11547 from yiisoft/11429-message-source
Fixed `yii\i18n\PhpMessageSource::loadFallbackMessages()`
2016-05-15 21:59:50 +03:00
515732c7b8 Test for bug dbTypecast with empty char #11548 2016-05-13 16:37:20 +03:00
f7ff153fce Fixed yii\i18n\PhpMessageSource::loadFallbackMessages() not to log error when source and language is same, but locales are different 2016-05-12 01:30:17 +03:00
1ed6fc09f6 #10825 Fixed EachValidator does not respect skipOnEmpty when using model (#11507) 2016-05-11 14:11:32 +02:00
6b607d078f #11498: Fixed unable to saved serialized object into PostgreSQL binary column (#11499)
#11498: Fixed unable to saved serialized object into PostgreSQL binary column
2016-05-06 11:04:27 +02:00
53e1018648 Updated yii\grid\DataColumn::getHeaderCellLabel() to extract attribute label from the filterModel of Grid
Closes #9950
2016-05-03 15:01:33 +03:00
030913e7f0 Fixed code style and indentations 2016-05-03 14:51:25 +03:00
aaf6c844fb Added DataColumnTest 2016-05-03 14:51:25 +03:00