- Introduces shortcode to custom format dates

This commit is contained in:
Vlad
2017-01-06 11:56:11 -05:00
parent e4166cecba
commit 497c2fb595
2 changed files with 10 additions and 3 deletions

View File

@@ -85,6 +85,8 @@ class ShortcodesTest extends MailPoetTest {
expect(Date::process('m'))->equals($date->format('m'));
expect(Date::process('mtext'))->equals($date->format('F'));
expect(Date::process('y'))->equals($date->format('Y'));
// allow custom date formats (http://php.net/manual/en/function.date.php)
expect(Date::process('custom_U'))->equals($date->format('U'));
}
function testItCanProcessNewsletterShortcodes() {