Boudewijn Vahrmeijer
7f537d684e
Custom ID generation for Pjax widgets to solve unstable ajax calls (issue #12969 )
...
Implements the solution proposed in the following comment:
https://github.com/yiisoft/yii2/pull/12977#issuecomment-260123078
2016-12-01 14:27:20 +01:00
Alexey Rogachev
8ea1f510af
Implemented Javascript test suite
...
fixes #12840
Used @nkovacs draft as starting
point(https://github.com/yiisoft/yii2/issues/11037#issuecomment-193356450 ).
I also fixed some bugs in `yii.validation.js` and did some refactoring.
Implemented tests:
- yii.validation.js
Running tests:
- Install Node.js. I used the latest version available at the moment -
`v7.1.0`. Note that used `jsdom` dependent library version requires
`Node.js >= 4`.
- Run `npm install` to install dependencies.
- Execute `npm test` for running tests.
2016-12-01 11:25:18 +01:00
Carsten Brandt
47ece37b5a
Merge branch 'prepare-travis-for-js'
...
* prepare-travis-for-js:
remove CUBRID env from travis it is unused
Install APC on Ubuntu trusty
Fix MySQL database setup for ubuntu trusty
Switch travis OR from precise to trusty
2016-12-01 11:12:44 +01:00
Alexey Rogachev
e94ca4793b
Install APC on Ubuntu trusty
...
Trusty does not have APC preinstalled (see
https://github.com/travis-ci/travis-ci/issues/5618 ,
https://github.com/travis-ci/travis-ci/issues/6853 ) so we need to
install it manually using PECL. `yes ''` allows to skip prompts and fill
it with default values.
2016-12-01 11:10:13 +01:00
Carsten Brandt
081ee7c5b1
Implemented shortcut methods for returning JSON and XML ( #13101 )
...
fixes #13036
2016-12-01 10:33:49 +01:00
Carsten Brandt
6782954c6a
improved test coverage of HostFilter
...
PR #13063
2016-12-01 01:31:30 +01:00
Klimov Paul
7da77c3d5a
created HostControl filter to prevent Host header attacks
...
fixes #13050
close #13063
2016-12-01 00:59:26 +01:00
Klimov Paul
18b0dab360
Fixed yii\console\controllers\AssetController::adjustCssUrl() breaks URL reference specification (url(#id))
2016-11-29 10:24:39 +02:00
Robert Korulczyk
2d91723934
Add support for creating protocol-relative URLs.
...
Improve phpdoc for protocol-relative URL creation.
Remove useless `is_string()` check.
2016-11-29 09:53:51 +02:00
Tim Beks
f23dc5aee9
Add attribute to set the openlog $option attribute for SyslogTarget
...
Fixes issue #13074
close #13075
2016-11-29 00:00:24 +01:00
Fabian Peter Hammerle
46da2df98d
yii\db\mysql\Schema::loadColumnSchema sets enumValues attribute incorrectly if enum definition contains comma
...
(i.e. "enum('a','B','c,D')" -> ['a','B','c','D'] instead of expected ['a','B','c,D'])
2016-11-29 00:21:44 +02:00
SilverFire - Dmitry Naumenko
63e650952b
Updated tests for HtmlHelper::textarea()
2016-11-29 00:06:20 +02:00
Elvira Sheina
0545bb6936
Fixed truncateHtml leaving extra tags ( #7727 )
2016-11-28 20:29:20 +05:00
Alexey Rogachev
e705519c5a
Fixes #13071 : Help option for commands was not working in modules
2016-11-27 16:14:08 +03:00
yamaha252
22b2a78a0a
Added test for unique validator with empty values
...
close #7007
2016-11-27 02:37:12 +01:00
Alexander Makarov
41b3f0db0b
Fixed driver name in MSSQL test
2016-11-22 23:34:35 +03:00
Carsten Brandt
a837c59182
improved error message for Instance::ensure() when component does not exist ( #12967 )
...
fixes #7333
2016-11-22 17:49:55 +01:00
Boudewijn Vahrmeijer
aba42fce4d
Squash merge rebased branch nadar-patch-4
2016-11-22 17:01:38 +01:00
Herbert Maschke
b58fee7d37
Fixes #13035 : Use ArrayHelper::getValue() in SluggableBehavior::getValue()
2016-11-22 13:20:45 +03:00
Alexey Rogachev
6428fab406
Closes #9162 : Added support of closures in value for attributes in yii\widgets\DetailView ( #13013 )
...
#9162 : Added support of closures in `value` for attributes in `yii\widgets\DetailView`
2016-11-18 11:31:40 +03:00
Alexey Rogachev
ea251e24ba
Closes #7420 : Attributes for prompt generated with renderSelectOptions of \yii\helpers\Html helper
2016-11-17 16:43:19 +02:00
Carsten Brandt
059a80b47f
renamed Cache::$ttl to Cache::$defaultDuration
...
better naming as discussed in #12990
2016-11-15 23:54:12 +01:00
Walt Sorensen
f76f0cff6c
Test against the current hhvm version ( #12971 )
...
* Test against the current hhvm version
This provides the current HHVM version (3.15.2 as of this PR) and will track with each release (i.e. will be 3.16 when 3.16 is released.
If testing against HHVM LST versions is desired follow this guide. https://docs.travis-ci.com/user/languages/php#HHVM-versions
Should be able to change to container based Trusty after Q1-17 https://blog.travis-ci.com/2016-11-08-trusty-container-public-beta/
* Try to create travis user for trusty hhvm and grant permissions
remove conditionals for apc and memcache
* more tweaks to grant privileges
* try 127.0.0.1 rather than localhost
* grant after db create
* try a different create user grant privileges form
* try to specify postgresql: "9.3" for hhvm
* need to look more into specifying postgresql: "9.3"
hhvm issues
* addon with no dash postgresql: "9.3"
* requested change && not ||
* redis-server isn't needed here
* Apply @cebe's patch for pgsql test failure
* Update .travis.yml
* Update CommandTest.php
* Update CommandTest.php
* Update CommandTest.php
try to fix hhvm tests
* Update CommandTest.php
2016-11-15 16:50:41 +01:00
Carsten Brandt
6caedd1ff6
added test for MySQL index hints, #10869
2016-11-15 14:10:41 +01:00
SDKiller
556e9cf99b
Updates after PR review (related #6809 )
2016-11-14 23:53:09 +01:00
SDKiller
8df1017f42
Default cache ttl (duration) property ( fixes #6809 )
2016-11-14 23:53:09 +01:00
Klimov Paul
1157657cab
Fixed incorrect order of migrations history in case yii\console\controllers\MigrateController::$migrationNamespaces is in use
2016-11-14 14:24:53 +02:00
SilverFire - Dmitry Naumenko
14b4f52e44
Updated CHANGELOG
2016-11-13 18:02:54 +02:00
Anton Kozlov
20a411d8ab
Fixed #12822 : Fixed datetime creation from microseconds, added tests to \i18n\Formatter::asTimestamp
2016-11-13 18:02:54 +02:00
SilverFire - Dmitry Naumenko
25ebf03a8d
Fixed ValidatorTest::testValidateWithEmpty()
...
Closes #12848
2016-11-12 16:20:41 +02:00
SilverFire - Dmitry Naumenko
9e129705a7
PHPDocs updated
2016-11-12 15:58:57 +02:00
SilverFire - Dmitry Naumenko
a9124dd8c2
Added unit tests for rules with private fields
2016-11-12 15:46:14 +02:00
Carsten Brandt
24809c5d73
fixed group annotations for #12889
2016-11-10 23:46:05 +01:00
Carsten Brandt
c75a546621
document usage of ActiveRecordTestTrait
...
fixes #12897
2016-11-09 21:11:15 +01:00
Boudewijn Vahrmeijer
b641c1f41b
Enh Dependency getHasChanged ( #12928 )
...
* - rename getHasChanged() to isChanged()
- updated docs
- added tests for Dependency
- added useful helpers for inaccessible properties to TestCase
2016-11-09 10:05:06 +01:00
Carsten Brandt
e675d5a7a1
removed old include from tests bootstrap
...
issue #12943
2016-11-08 23:43:14 +01:00
SilverFire - Dmitry Naumenko
87f843524e
Fixed typo
2016-11-08 23:26:46 +02:00
SilverFire - Dmitry Naumenko
24a5532ca9
Added unit tests for #12750
2016-11-08 23:20:42 +02:00
Alexander Zlakomanov
b48b1a0657
Fixes #12904 : Fixed lowercase table name in migrations
2016-11-08 23:39:44 +03:00
Alexey Rogachev
d50a06e4e7
Fixed typo in comment ( #12945 ) [skip ci]
2016-11-08 16:22:30 +03:00
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed boolean to bool and integer to int in phpdoc
2016-11-07 02:51:39 +03:00
n.vanderburg
6b73cfccbb
Fixes #12881 : Added removeValue method to yii\helpers\BaseArrayHelper (nilsburg)
2016-11-04 18:21:56 +03:00
Boudewijn Vahrmeijer
8705219005
Added tests for HelpController ( #12908 )
2016-11-04 15:58:21 +03:00
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
2016-11-01 20:48:58 +01:00
Klimov Paul
e7c080594d
Fixed yii\behaviors\AttributeTypecastBehavior marks attributes with null value as 'dirty'
2016-11-01 12:27:36 +02:00
Alexander Makarov
0ac321370b
Fixes #12856 : Fixed yii\web\XmlResponseFormatter to use true and false to represent booleans
2016-10-29 21:57:48 +03:00
Edgard Lorraine Messias
d3c7accc49
Added braces check for initDefaultButton ( #12863 )
2016-10-28 00:22:11 +03:00
Alexey Rogachev
aa6d34a285
Fixes #9796 : Initialization of not existing yii\grid\ActionColumn default buttons ( #12859 )
2016-10-27 22:11:54 +03:00
Evgeniy Tkachenko
757b3de0bf
Fixes #12828 : Fixed handling of nested arrays, objects in \yii\grid\GridView::guessColumns
2016-10-27 16:19:13 +03:00
Paul Klimov
8d05bd9479
yii\base\Application::$version converted to yii\base\Module::$version virtual property, allowing to specify version as a PHP callback
...
`yii\base\Application::$version` converted to `yii\base\Module::$version` virtual property, allowing to specify version as a PHP callback
2016-10-25 17:10:56 +03:00