Fix formating [date:dordinal] shortcode

[MAILPOET-2148]
This commit is contained in:
Ján Mikláš
2019-07-02 11:27:27 +02:00
committed by M. Shull
parent ba229c0cf1
commit 01bd3d036b
2 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ class ShortcodesTest extends \MailPoetTest {
$shortcode_details = ['action' => 'd'];
expect(Date::process($shortcode_details))->equals(date_i18n('d', current_time('timestamp')));
$shortcode_details = ['action' => 'dordinal'];
expect(Date::process($shortcode_details))->equals(date_i18n('dS', current_time('timestamp')));
expect(Date::process($shortcode_details))->equals(date_i18n('jS', current_time('timestamp')));
$shortcode_details = ['action' => 'dtext'];
expect(Date::process($shortcode_details))->equals(date_i18n('l', current_time('timestamp')));
$shortcode_details = ['action' => 'm'];