SilverFire - Dmitry Naumenko
59fed9a428
Fixed error in tests
7 years ago
SilverFire - Dmitry Naumenko
0177d68476
Commit da06c4a1
reduced num of useless brackets in SQL. Fixing tests
7 years ago
Alexander Makarov
64d57043b1
Fixes #11401 : Fixed `yii\web\DbSession` concurrency issues when writing and regenerating IDs
7 years ago
Dmitry Naumenko
de1750228d
Fixes #13879 : Added upsert support for `yii\db\QueryBuilder` and `yii\db\Command`
7 years ago
Vladimir Reznichenko
ecf3ef8bf9
Use root NS specification for opcoded functions
7 years ago
Zhukov Roman
40b038379f
Fixes #13019 : Support JSON in SchemaBuilderTrait
7 years ago
Klimov Paul
71c541773f
PHPDoc fix
7 years ago
Klimov Paul
65f6b59b35
`@inheritdoc` notation changed
7 years ago
Sergey Makinen
315855f7f5
Fixes #15357 : Added multi statement support for `yii\db\sqlite\Command`
7 years ago
Sergey Makinen
4e176ca325
Fixes #15108 : Fixed `yii\db\Schema::getSchemaNames()` for MSSQL and added tests for all DBMSes
7 years ago
SilverFire - Dmitry Naumenko
c0d8b0a817
Fixed sqlite tests
...
Prevent marking some tests as risky
7 years ago
SilverFire - Dmitry Naumenko
06d7a1f0c6
Improved ConnectionTest performance
...
Methods testMastersShuffled and testMastersSequential executed about 30 seconds each.
This commit reduces execution time to 2-5 seconds each.
7 years ago
Robert Korulczyk
5a8c3d537b
Enable `phpdoc_summary` rule in php-cs-fixer config ( #14675 )
...
* Enable `phpdoc_summary` rule in php-cs-fixer config.
* Fix case in "PHPDoc".
7 years ago
Robert Korulczyk
0c0942d6e2
Enable `phpdoc_add_missing_param_annotation` rule in php-cs-fixer config. ( #14681 ) [skip ci]
7 years ago
Robert Korulczyk
12eb936083
Enable `heredoc_to_nowdoc` rule in php-cs-fixer ( #14419 )
7 years ago
Sergey Makinen
c8856ccd4e
Fix merging issues & CS
7 years ago
Robert Korulczyk
ba0ab403b5
Added php-cs-fixer coding standards validation to Travis CI ( #14100 )
...
* php-cs-fixer: PSR2 rule.
* php-cs-fixer: PSR2 rule - fix views.
* Travis setup refactoring.
* Add php-cs-fixer to travis cs tests.
* Fix tests on hhvm-3.12
* improve travis config
* composer update
* revert composer update
* improve travis config
* Fix CS.
* Extract config to separate classes.
* Extract config to separate classes.
* Add file header.
* Force short array syntax.
* binary_operator_spaces fixer
* Fix broken tests
* cast_spaces fixer
* concat_space fixer
* dir_constant fixer
* ereg_to_preg fixer
* function_typehint_space fixer
* hash_to_slash_comment fixer
* is_null fixer
* linebreak_after_opening_tag fixer
* lowercase_cast fixer
* magic_constant_casing fixer
* modernize_types_casting fixer
* native_function_casing fixer
* new_with_braces fixer
* no_alias_functions fixer
* no_blank_lines_after_class_opening fixer
* no_blank_lines_after_phpdoc fixer
* no_empty_comment fixer
* no_empty_phpdoc fixer
* no_empty_statement fixer
* no_extra_consecutive_blank_lines fixer
* no_leading_import_slash fixer
* no_leading_namespace_whitespace fixer
* no_mixed_echo_print fixer
* no_multiline_whitespace_around_double_arrow fixer
* no_multiline_whitespace_before_semicolons fixer
* no_php4_constructor fixer
* no_short_bool_cast fixer
* no_singleline_whitespace_before_semicolons fixer
* no_spaces_around_offset fixer
* no_trailing_comma_in_list_call fixer
* no_trailing_comma_in_singleline_array fixer
* no_unneeded_control_parentheses fixer
* no_unused_imports fixer
* no_useless_return fixer
* no_whitespace_before_comma_in_array fixer
* no_whitespace_in_blank_line fixer
* not_operator_with_successor_space fixer
* object_operator_without_whitespace fixer
* ordered_imports fixer
* php_unit_construct fixer
* php_unit_dedicate_assert fixer
* php_unit_fqcn_annotation fixer
* phpdoc_indent fixer
* phpdoc_no_access fixer
* phpdoc_no_empty_return fixer
* phpdoc_no_package fixer
* phpdoc_no_useless_inheritdoc fixer
* Fix broken tests
* phpdoc_return_self_reference fixer
* phpdoc_single_line_var_spacing fixer
* phpdoc_single_line_var_spacing fixer
* phpdoc_to_comment fixer
* phpdoc_trim fixer
* phpdoc_var_without_name fixer
* psr4 fixer
* self_accessor fixer
* short_scalar_cast fixer
* single_blank_line_before_namespace fixer
* single_quote fixer
* standardize_not_equals fixer
* ternary_operator_spaces fixer
* trailing_comma_in_multiline_array fixer
* trim_array_spaces fixer
* protected_to_private fixer
* unary_operator_spaces fixer
* whitespace_after_comma_in_array fixer
* `parent::setRules()` -> `$this->setRules()`
* blank_line_after_opening_tag fixer
* Update finder config.
* Revert changes for YiiRequirementChecker.
* Fix array formatting.
* Add missing import.
* Fix CS for new code merged from master.
* Fix some indentation issues.
7 years ago
Sergey Makinen
52f8539135
Add Command tests
7 years ago
Sergey Makinen
73ac13e6d7
Implement retrieving dbms constraints
7 years ago
Carsten Brandt
fb2441c3d7
moved query log logic into private method and reduced calls to getRawSql()
...
fixes #12528
7 years ago
Alexander Makarov
3f8e8a89eb
Used more specific unit test assertions in framework tests
8 years ago
Sergey Makinen
9a915ba10c
Fixes #8120 : Fixes LIKE special characters escaping for Cubrid/MSSQL/Oracle/SQLite in `yii\db\QueryBuilder`
8 years ago
Bob Olde Hampsink
fab53b4a6e
Fixes #13582 : Added tests for all `yii\db\QueryBuilder::resetSequence` implementations, fixed SQLite implementation
8 years ago
Boudewijn Vahrmeijer
45d670c995
Update ConnectionTest.php
8 years ago
Vovan-VE
3538bde085
Add test case for #13340 and update CHANGELOG
8 years ago
Alexander Makarov
1cc327f108
Run common batch insert tests for SQLite
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
Vladimir
f3bc11c724
Implement #13219 : Ability to not shuffle masters connections ( #13241 )
...
* Implement #13219 : Ability to not shuffle masters connections
* Enh: add master connection getter
* Add test case for #13241 which implements #13219
* Doc comments [skip ci]
* Doc comments
* Fix: wrong return value when no masters
* Revert `getMasterPdo()` 4a786c7e10519bd1b3b5593e6fa0a6bbdafbb37a
* Fix: try to fix too slow test
* Refact: fix Single Responsibility; Fix possible BC break
* Update Connection.php
* Update Connection.php
* Update Connection.php
* Update Connection.php
* Updated CHANGELOG
* Fix: grammatic mistake
* Refact: property renamed from `randomizeMasters` to `shuffleMasters`
* Refact: split and try to simplify tests
8 years ago
Carsten Brandt
24809c5d73
fixed group annotations for #12889
8 years ago
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed `boolean` to `bool` and `integer` to `int` in phpdoc
8 years ago
Boudewijn Vahrmeijer
560e3eb0a3
Unit tests created for ActiveQuery ( #12889 )
...
* setup ActiveQueryTest
* basic unit tests for ActiveQuery are created:
- all protected & public methods are covered
- method return types are tested
- some functions are already full tested, others are supplied with @todo
* fix driver for mssql
* fix ::class to className()
* remove OCI tests
8 years ago
Alexander Makarov
01c4dde202
Added tests for column schema builder comment() method
8 years ago
Carsten Brandt
86f17c8dad
added tests classes for db related tests
8 years ago
Carsten Brandt
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
8 years ago
cuiliang
c0df003ac0
merge from master
8 years ago
SilverFire - Dmitry Naumenko
77b29bf927
Added tests to ColumnSchemaBuilderTest in order to verify custom column types work OK
8 years ago
SilverFire - Dmitry Naumenko
8c2a70b3e7
Moved TraversableObject to yiiunit\data\base namespace
9 years ago
SilverFire - Dmitry Naumenko
e2e4f76229
Updated SqliteQueryBuilderTest to work with Composite in conditions
...
Updated code style, CHANGELOG
9 years ago
Carsten Brandt
8d8cd1a26d
adjusted dbms specific tests
9 years ago
SilverFire - Dmitry Naumenko
b08c82c5fe
Driver specific QueryBuilderTest::testCommentColumn() - improved to use replaceQuotes()
9 years ago
SilverFire - Dmitry Naumenko
8999e66e71
Fixed SqliteQueryBuilderTest
9 years ago
Chris Harris
0b2db6f18a
Fixing tests
9 years ago
Chris Harris
91018f6c38
Corrected MSSQL driver name. Fixed array addition to not overwrite matching keys.
9 years ago
Chris Harris
732a51b551
All common column definitions and expected outputs now in `QueryBuilderTest::columnTypes()`. `DbmsSpecificQueryBuilderTest::columnTypes()` adds DBMS specific column definitions.
9 years ago
Chris Harris
0a336df6ba
Check return value of strncmp. Corrected SQLite expected schema test data.
9 years ago
Chris Harris
13823834e2
Start of new tests
9 years ago
Chris Harris
db5399b124
Added `$expectedColumnSchemaBuilder` back to test data
9 years ago
Chris Harris
3761682edf
Upgraded some tests. Fixed MySQL test fixtures to create all tables with InnoDB.
9 years ago
Chris Harris
81ff4752d9
Added CHECK modifier to PK schema pattern. Modified UNSIGNED tests to not include modifier by default (i.e. only present when testing DBMSes that support it).
9 years ago