Commit Graph

452 Commits

Author SHA1 Message Date
Qiang Xue
9763086842 Fixed test break 2013-11-07 22:57:49 -05:00
Qiang Xue
f7f76a3e62 Fixed test break. 2013-11-07 22:43:47 -05:00
Qiang Xue
90a5bcc611 Refactored mail. 2013-11-07 22:33:57 -05:00
Paul Klimov
f77a047273 Merge branch 'master' of github.com:yiisoft/yii2 into email-swift-2 2013-11-07 17:16:40 +02:00
Paul Klimov
104cfd7cb2 'yii\mail\MessageInterface' methods renamed: 'text' to 'textBody', 'html' to 'htmlBody' 2013-11-07 12:22:24 +02:00
Paul Klimov
1aafa73e15 Render methods removed from 'yii\mail\MessageInterface'.
Method 'yii\mail\MailerInterface::compose()' reworked allowing rendering message body.
2013-11-07 12:18:07 +02:00
Alexander Makarov
a65734abc3 Merge pull request #1152 from yiisoft/view-refactoring
Refactored View
2013-11-06 12:45:45 -08:00
Carsten Brandt
0ea05a6460 added unit tests for logger and log target
related to #1151
2013-11-06 20:26:49 +01:00
Alexander Makarov
927e9dddb4 Refactored View 2013-11-06 22:52:27 +04:00
Paul Klimov
ad7761f96a Method 'yii\mail\MessageInterface::compose()' renamed to 'yii\mail\MessageInterface::message()'. 2013-11-06 13:27:07 +02:00
Paul Klimov
3d1a625cbb 'yii\mail\MessageInterface' updated:
- 'body()' renamed to 'renderBody()'
- new 'body()' method introduced
2013-11-06 12:48:44 +02:00
Paul Klimov
b0c5981d42 Method names "yii\mail\MessageInterface" simplified. 2013-11-06 12:28:39 +02:00
Klimov Paul
28b032737d Method 'yii\mail\BaseMailer::compose()' updated, allowing composition of the complex methods like 'renderText' and 'body'. 2013-11-05 16:09:24 +02:00
Klimov Paul
45d02d07a0 Method 'yii\mail\MessageInterface::body()' added. 2013-11-05 15:45:27 +02:00
Klimov Paul
87af95f712 'yii\mail\MessageInterface' updated:
- setter methods renamed to have pure name
- method 'createMessage' renamed to 'compose'
2013-11-05 14:57:13 +02:00
Carsten Brandt
58589e03bd improved asset converter command running
now also gets stderr output.

fixes #1140
2013-11-05 12:25:29 +01:00
Carsten Brandt
a0b0d42b46 fixed message formatting for all the ICU versions
- refactored replaceNamedArguments.
- ensure gridview message works on all systems.

fixes #1072
2013-11-04 15:05:38 +01:00
Klimov Paul
ef6fea9610 Unit test 'BaseMessageTest' created 2013-11-04 13:24:22 +02:00
Paul Klimov
368c244768 MessageInterface::render() replaced by MessageInterface::renderHtml() and MessageInterface::renderText() 2013-11-04 11:52:33 +02:00
Qiang Xue
9862ee35b2 Fixes #1115: fixed the issue with PDO boolean value binding with pgsql 2013-11-03 18:51:16 -05:00
Carsten Brandt
433958b40c removed sqlite specific test as it is the same as base AR test now 2013-11-03 15:50:11 +01:00
Qiang Xue
26c7f6d62f Fixed sqlite column type detection bug. 2013-11-03 09:02:17 -05:00
Carsten Brandt
c8c377e698 skip test on postgres 2013-11-01 18:10:57 +01:00
Carsten Brandt
ee1689da03 some more on active record unit tests and sqlite
sqlite does not seem to allow using boolean values in select query
2013-11-01 17:57:28 +01:00
Carsten Brandt
937a55f4fa fixed unit test for sqlite 2013-11-01 17:39:49 +01:00
Carsten Brandt
f153ce443a reverted non working fix for #1115 2013-11-01 17:20:19 +01:00
Carsten Brandt
e5a1244e0f moved unit test from cubrid to general
should be tested for all dbms not only cubrid even if the problem may
not exist in all of them it is good to verify that.
2013-11-01 16:46:41 +01:00
Qiang Xue
8b00693a0a Fixes #1025: Implemented support for class-level events. 2013-10-30 00:12:48 -04:00
Carsten Brandt
34945b0b69 added unit test to verify storing of null values
http://www.yiiframework.com/forum/index.php/topic/48359-inserting-nulls/page__view__findpost__p__226019
2013-10-29 18:27:20 +01:00
Paul Klimov
4c27d887ca Merge branch 'master' of github.com:yiisoft/yii2 into email-swift-2 2013-10-29 16:12:17 +02:00
Paul Klimov
99d8216103 Email message charset setup added. 2013-10-29 16:11:57 +02:00
Paul Klimov
1d0891f0f6 'yii\mail\MessageInterface' methods 'addText()' and 'addHtml()' removed. 2013-10-29 16:04:20 +02:00
Carsten Brandt
15a9b04fcc simplified travis env check for memcache(d) 2013-10-29 13:54:55 +01:00
Carsten Brandt
f5c25e0858 travis memcache env check: try again 2013-10-29 13:49:00 +01:00
Carsten Brandt
a75c07be22 print travis ENV 2013-10-29 13:35:15 +01:00
Carsten Brandt
0e3d48f288 skip expiry test for memcache on travis
fixes #877
2013-10-29 13:10:51 +01:00
Paul Klimov
774c4db860 'yii\mail\MessageInterface' file related methods interface adjusted to use options, embed file methods added. 2013-10-29 14:06:16 +02:00
Paul Klimov
35429fbd44 'yii\mail\ViewResolve' removed.
Interface 'ViewContextInterface' applied to BaseMailer.
2013-10-29 12:34:08 +02:00
Paul Klimov
5bc22a077f Interface 'MailerInterface' extracted.
Method 'MailerInterface::createMessage()' added.
2013-10-29 12:13:26 +02:00
Paul Klimov
31ea3f897f Merge branch 'master' of github.com:yiisoft/yii2 into email-swift-2 2013-10-29 11:18:44 +02:00
Alexander Mohorev
51211898f8 Control statements based on the if and elseif constructs must have a single space before the opening parenthesis of the conditional and a single space after the closing parenthesis. 2013-10-28 23:51:48 +03:00
Carsten Brandt
d637a76f56 add support for named arguments to messageformatter parse 2013-10-28 15:06:44 +01:00
Carsten Brandt
4d03699907 fixed fallback message format parameter order 2013-10-28 12:09:26 +01:00
Carsten Brandt
bcd1ad11a4 refactored MessageFormatter 2013-10-28 11:59:49 +01:00
Paul Klimov
2d5377042b Merge branch 'master' of github.com:yiisoft/yii2 into email-swift-2 2013-10-28 12:25:09 +02:00
Carsten Brandt
29ef541980 Merge branch 'master' into messageformatter-refactoring
* master:
  ensure parameter types in baselistview message
  added unit test to verify AR afterSave isNewRecord value
2013-10-28 11:05:37 +01:00
Carsten Brandt
c62e0cbbfb added unit test to verify AR afterSave isNewRecord value
closes #1084
2013-10-28 10:48:18 +01:00
Carsten Brandt
449eb84247 refactored message formatter 2013-10-28 01:54:31 +01:00
Paul Klimov
73a8e77c3d BaseMailer::defaultMessageConfig published as BaseMailer::messageConfig 2013-10-25 17:03:33 +03:00
Paul Klimov
d33519e3e5 Method 'MessageInterface::__toString()' added 2013-10-25 16:58:30 +03:00