Commit Graph

1360 Commits

Author SHA1 Message Date
Carsten Brandt
d7b4ea859b refactored date formatting functions
- removed unformat methods, they do not belong here
- removed db format, which is also not purpose of this class
- refactored the whole set of methods to be simpler and better
  maintainable

More unit tests needed.
2014-06-16 18:58:36 +02:00
Carsten Brandt
330b8c2507 Merge branch '2359-formatter-refactored' of https://github.com/Erik-r/yii2-1 into Erik-r-2359-formatter-refactored
* '2359-formatter-refactored' of https://github.com/Erik-r/yii2-1:
  #2359 Bugfix in normalizeDatetimeValue after regression test
  #2359 one test failed in Travis because standard medium date format is different in Travis then on my locale PC.
  #2359 testcases adapted and compatibility to old tests improved
  remove comment lines in asRelativeTime
  Typo in function call #2359
  Namespace corrected #2359
  Refactored formatter class #2359 which works with or without intl extension. Use PHP format patterns alsow with intl. Class is compatible with previous version.
2014-06-16 13:24:20 +02:00
Carsten Brandt
639e52c199 skip tests on HHVM 2014-06-16 11:06:01 +02:00
Carsten Brandt
36fe23dac3 use different file names in different tests to run on HHVM 2014-06-16 10:47:49 +02:00
Carsten Brandt
106a078ab7 use different file names in tests to ensure they can run on HHVM 2014-06-16 10:29:17 +02:00
patrick
48f941dac7 Fixes Twig lexerOptions throwing exception (#3877) and adds test for lexerOptions 2014-06-15 13:15:36 +02:00
patrick
394ca05b72 Adds twig lexerOptions to ViewRendererTest to demonstrate error 2014-06-15 12:46:42 +02:00
Mark
a89d574a20 updated FileValidator , CHANGELOG.md , UPGRADE.md guides , tests fixed 2014-06-14 22:11:58 +04:00
Mark
1a3c04e0d2 fixed tests 2014-06-14 13:14:36 +04:00
Klimov Paul
88c25245a2 Test path composition in 'AssetControllerTest' adjusted 2014-06-13 11:51:32 +03:00
Erik_r
0a10e92f92 #2359 one test failed in Travis because standard medium date format is different in Travis then on my locale PC. 2014-06-13 10:40:40 +02:00
Erik_r
299d991a2e #2359 testcases adapted and compatibility to old tests improved 2014-06-12 16:45:25 +02:00
Carsten Brandt
3489f295bb fixed hhvm build error 2014-06-12 14:31:21 +02:00
Carsten Brandt
8904066519 skip Imagine test on HHVM 2014-06-12 14:14:20 +02:00
Carsten Brandt
18c5bb1352 fixed file permission 2014-06-12 13:25:00 +02:00
Carsten Brandt
3a42c8c3e7 try to fix hhvm tests 2014-06-12 13:21:16 +02:00
Carsten Brandt
1a7b4c5383 added testcase of @UncleCoder
e43c503c2d

issue #3817
2014-06-12 10:52:36 +02:00
Mark
0206e9174c file validator tests added 2014-06-10 14:14:59 +04:00
Alexander Makarov
f8e05fbf4f Improved yii\helpers\Inflector::slug to support more cases for Russian, Hebrew and special characters 2014-06-08 05:44:31 +04:00
Klimov Paul
8bb3e07c82 Merge branch 'master' of github.com:yiisoft/yii2 2014-06-05 11:47:07 +03:00
Klimov Paul
603127712b Escaping of the special characters at 'MATCH' statement reworked 2014-06-05 11:46:35 +03:00
Carsten Brandt
0208f289c3 fixed test breaks 2014-06-04 19:12:18 +02:00
Carsten Brandt
59b9065cec ES: fixed issue with storing empty records
fixes #3587
2014-06-04 17:56:42 +02:00
Carsten Brandt
e9758fec29 fixed test break 2014-06-04 17:24:01 +02:00
Carsten Brandt
d92281dcda refactored ActiveRecord::unlinkAll() to work will noSQL
issue #3520
2014-06-04 14:28:57 +02:00
Klimov Paul
804aded508 yii\sphinx\Connection::escapeMatchValue() fixed 2014-06-04 10:56:33 +03:00
Klimov Paul
62fdaeec6a Extra quote escaping at yii\sphinx\Connection::escapeMatchValue() fixed 2014-06-03 16:46:03 +03:00
Klimov Paul
adb36e42c4 Usage of yii\db\Expression for the 'MATCH' statement fixed 2014-06-03 15:58:02 +03:00
Klimov Paul
b8c9d51530 Merge branch 'master' of github.com:yiisoft/yii2 2014-06-03 13:48:38 +03:00
Klimov Paul
3f001aeed0 Escaping of the special characters at 'MATCH' statement added 2014-06-03 13:47:15 +03:00
Alexander Makarov
2a75cd19c0 Added missing relations to Redis/Elasticsearch test models 2014-06-03 14:24:11 +04:00
Alexander Makarov
4769e730fa Fixed sqlite schema SQL 2014-06-03 14:20:30 +04:00
Alexander Makarov
9c564808e5 Added missing models for Redis tests 2014-06-03 14:02:41 +04:00
Alexander Makarov
d34e3c326f Fixed typo in test 2014-06-02 20:14:48 +04:00
Alexander Makarov
a5c4a0ebb4 Adjusted BaseActiveRecord code for better noSQL compatibility 2014-06-02 20:13:48 +04:00
Alexander Makarov
ed041f7ade Added missing imports 2014-06-02 18:52:13 +04:00
Alexander Makarov
d0aadffb91 Added missing test models for elasticsearch 2014-06-02 18:33:12 +04:00
Alexander Makarov
0003b10b02 ElasticSearch tests fix 2014-06-02 18:14:02 +04:00
Alexander Makarov
4624793954 Merge branch 'unlinkAll' of github.com:NmDimas/yii2 into NmDimas-unlinkAll
Conflicts:
	framework/CHANGELOG.md
2014-06-02 17:38:15 +04:00
NmDimas
95d2b29bff Change unit test to Unlink and add test to unlinkAll 2014-06-01 22:40:05 +03:00
Klimov Paul
f19a97e308 Fix yii\helpers\FileHelper::copyDirectory() pattern not working 2014-05-30 14:50:11 +03:00
Klimov Paul
243f0134c9 OpenId return URL comparison advanced to prevent url encode problem 2014-05-30 12:55:28 +03:00
Alexander Makarov
d7a251bbec Removed unused imports, added missing phpdoc 2014-05-30 11:55:17 +06:00
Carsten Brandt
873b2b04db fixed test breaks after #3614 2014-05-28 17:20:24 +02:00
Carsten Brandt
c6201fb5ca fixed cubrid test case 2014-05-26 13:43:42 +02:00
Carsten Brandt
d1a3d40014 added test case to acually create cols with virtual type
verify issue #3473
2014-05-26 11:53:06 +02:00
Carsten Brandt
4de6e8c6b2 fix #3501 replace . when generating input ids 2014-05-25 18:51:06 +02:00
Qiang Xue
10889474dd Merge pull request #3549 from creocoder/range-validator-enh
Improve `in` validator to properly support array attributes.
2014-05-22 14:20:38 -04:00
Alexander Kochetov
460b5fab06 Tests added 2014-05-22 20:15:55 +04:00
Qiang Xue
96feeb894c Fixed test break of Html. 2014-05-22 09:51:49 -04:00