Commit Graph

1100 Commits

Author SHA1 Message Date
Alexander Makarov
0e567bdd9c Fixed tests 2015-03-07 00:31:22 +03:00
Alexander Makarov
b7a29e38d9 Fixes #6895: Added ignoreCategories config option for message command to ignore categories specified 2015-03-06 21:51:42 +03:00
Carsten Brandt
65a2c54974 fixed unicode in FormatConverter escaping
fixes #7603
2015-03-06 16:01:05 +01:00
pana1990
db8a6104b9 Deleted spaces [skip ci] 2015-03-06 10:45:41 +01:00
SilverFire
12fe0c7b85 Fixes #7488: Added StringHelper::explode to perform explode with trimming and skipping of empty elements 2015-03-05 19:10:38 +03:00
Alexander Makarov
0eecb6ab1e Fixes #7529: Fixed yii\web\Response::sendContentAsFile() that was broken in 2.0.3 2015-03-04 00:41:44 +03:00
Brandon Kelly
7a37c47bb2 Fixed #7150 - support ICU single quote syntaxes
- When converting an ICU date/time format to PHP, text within single quotes will be replaced with backslashes in front of each character (the PHP date() method for escaping text), and double-single quotes will be replaced with single quotes.
- When converting an ICU date/time format to jQuery UI, text  within single quotes, and double-single quotes, will each be preserved (rather than parsed for date/time format symbols), as jQuery UI uses the same text escaping and single quote syntax as ICU.
- Add support for '' within 'escaped text' E.g. 'o''clock'

close #7151
2015-03-01 00:02:35 +01:00
Carsten Brandt
ba6bce4e2d fixed DateValidator to work with multibyte strings
fixes #6835
2015-02-28 23:45:17 +01:00
Yoyon Cahyono
8b5e16ed56 compare position at which date value parsing ended with its string length to ensure validation when using php intl extension to parse date value
- fixes #6553
- Add additional testValidateAttributeICUFormat() test case using "2012-12-12foo" for "yyyy-MM-dd" date format
- close #6835
2015-02-28 23:33:17 +01:00
Nikolay Bogolubov
2e414632be fix EmailValidator - added unit tests
close #7183
fixes #7172
2015-02-28 23:04:12 +01:00
Qiang Xue
f57a517f6d Fixes #7449: Added encode option to allow not encoding select options for Html::dropDownList() and Html::listBox() 2015-02-26 21:24:46 -05:00
Anton Ivanov
36aa65287a Enh #7449: HtmlTest improvements 2015-02-26 21:09:33 -05:00
Alexander Makarov
e30b6e1d5b Merge branch 'master' into log-db-target-timestamp 2015-02-26 04:07:34 +03:00
Alexander Makarov
187322052d Fixed converting double to PHP type 2015-02-26 02:37:47 +03:00
Alexander Makarov
384607832f Added failing test for #7384 2015-02-25 16:04:12 +03:00
Alexander Makarov
5870a74672 Added Schema::DOUBLE to represent ANSI SQL Double Precision 2015-02-25 16:01:37 +03:00
Carsten Brandt
db37d03e32 added more tests for russian plurals 2015-02-24 20:42:51 +01:00
tom--
4512833fac Fixes #7215: Uses OpenSSL crypto lib instead of Mcrypt. Added testing of encrypted data compatibility, both backward and forward 2015-02-24 14:03:41 +03:00
Qiang Xue
a3ea7b774d Fixes #7350: Added yii\helpers\Html::$dataAttributes to support customizing data attributes. 2015-02-23 21:30:45 -05:00
Qiang Xue
e56bf03130 Fixed test break. 2015-02-22 19:33:23 -05:00
Alexander Makarov
00aafc82ef Fixes #7258: Response was sending HTML content type when formatter was set to JSON or XML, nulls were handled wrong 2015-02-21 02:32:09 +03:00
Alexander Makarov
106d6d5e4c Added JsonResponseFormatterTest 2015-02-21 01:57:10 +03:00
Jose Lorente
98759201ac Fixed bug #7271. Classes that call '*::populateRecord()' after retrieving data from ddbb call now the method on the class of the model returned by '*::instantiate()'. Tests for mysql, elasticsearch and mongodb attached. 2015-02-15 17:25:43 -05:00
Alexander Makarov
c80da0722e Fixed more tests on Windows failing because of line endings 2015-02-15 20:18:18 +03:00
Alexander Makarov
a831271d29 Moved assertEqualsWithoutLE() to \yiiunit\TestCase, fixed some test failures on Windows 2015-02-15 13:03:08 +03:00
Qiang Xue
d188dd10c0 Fixes #3168: Improved the performance of yii\rbac\DbManager::checkAccess() by caching mechanism 2015-02-12 21:29:00 -05:00
Jan Waś
1e5f159f78 override only mssql and sqlite QueryBuilder; throw an exception for composite in condition with a subquery 2015-01-31 22:20:41 -05:00
Jan Waś
f58d096920 fixes #6792, use a simpler composite in condition implementation on dbs other than pgsql 2015-01-31 22:20:41 -05:00
Alexander Makarov
51ace2861c Added test for using source language for missing translation formatting 2015-01-31 01:32:20 +03:00
Alexander Makarov
7e868555c5 Closes #7093 2015-01-31 00:58:56 +03:00
Carsten Brandt
754660ef7b added urlmanager test for default action 2015-01-30 21:58:39 +01:00
Carsten Brandt
e5e48cd484 added test for Json::encode() and JsonSerializable
close #7084
2015-01-29 19:52:53 +01:00
Klimov Paul
5bda2fe073 yii\console\controllers\AssetController now correctly handles relative image URLs if source and target CSS are under same directory 2015-01-29 15:44:05 +02:00
Qiang Xue
5ab1d1a0d1 Fixes #6992. 2015-01-24 08:57:53 -05:00
Qiang Xue
fe19243da1 Fixes #6969: yii\helpers\ArrayHelper::htmlEncode() and htmlDecode() should not remove non-string data 2015-01-22 21:09:46 -05:00
Qiang Xue
52f4006c11 Fixed Url::current() implementation. 2015-01-11 10:43:06 -05:00
Alexander Makarov
9c7e4e514d Fixes #6697: Added yii\helpers\Url::current() method that allows adding or removing parameters from current URL 2015-01-11 15:38:13 +08:00
Alexander Makarov
440eeea8cc Fixes #6106: Added ability to specify encode for each item of yii\widgets\Breadcrumbs 2015-01-11 15:13:34 +08:00
Carsten Brandt
aa9fe57fd7 removed date that is not well defined from tests 2015-01-10 23:02:17 +01:00
Carsten Brandt
6f889e12ac Merge PR #6763 branch 'creocoder-incorrect-checking-sqlite-version'
* creocoder-incorrect-checking-sqlite-version:
  improved db test, avoid error by accessing db directlry
  fixed failure on sqlite version check
  Correct SQLite version checking
2015-01-10 22:10:10 +01:00
Carsten Brandt
0300683bfc improved db test, avoid error by accessing db directlry
always use getConnection()
2015-01-10 22:08:42 +01:00
Carsten Brandt
f177f1701a fixed failure on sqlite version check
ensure PDO instance has been created at this point
2015-01-10 22:06:43 +01:00
Carsten Brandt
08531312ef fixed HHVM test break
always use unique directory for each test
2015-01-10 20:47:17 +01:00
Carsten Brandt
03351ccba3 added explicit test for the Y2K38 problem
http://en.wikipedia.org/wiki/Year_2038_problem
2015-01-10 18:37:43 +01:00
Carsten Brandt
2a19b3caa0 fixed whitespace in tests 2015-01-10 18:37:43 +01:00
Carsten Brandt
9415c7921d date formatter fall back to PHP impl. to solve Y2K38 issue
formatting date and time values for years >=2038 or <=1901 is now possible also with intl extension is
installed. 32bit systems will fall back to the PHP implementation because intl uses a 32bit UNIX timestamp internally.
On a 64bit system the intl formatter is used in all cases if installed.

fixes #5577
2015-01-10 18:27:35 +01:00
Carsten Brandt
05cc9ae405 improved HTML to Text fallback in BaseMailer
fixes #6748
2015-01-10 15:07:12 +01:00
Klimov Paul
b3c6d70cda Unit test for yii\console\controllers\AssetController advanced 2015-01-06 17:54:20 +02:00
Klimov Paul
94f702fe6e yii\console\controllers\AssetController now handles bundle files from external resources properly 2015-01-06 17:03:39 +02:00
Carsten Brandt
b7c315f3d6 skip requirements checker test on HHVM 2015-01-06 01:35:08 +01:00