[BUGFIX] Determine translations from transOrigPointerField instead of languageField
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Tests / Unit / Form / Element / NoneElementTest.php
index 227a9f9..ed96a4d 100644 (file)
@@ -91,6 +91,13 @@ class NoneElementTest extends UnitTestCase
                 '',
                 ''
             ),
+            'format to datetime with null value' => array(
+                array(
+                    'format' => 'datetime',
+                ),
+                null,
+                ''
+            ),
             'format to time' => array(
                 array(
                     'format' => 'time',
@@ -105,6 +112,13 @@ class NoneElementTest extends UnitTestCase
                 '',
                 ''
             ),
+            'format to time with null value' => array(
+                array(
+                    'format' => 'time',
+                ),
+                null,
+                ''
+            ),
             'format to timesec' => array(
                 array(
                     'format' => 'timesec',
@@ -119,6 +133,13 @@ class NoneElementTest extends UnitTestCase
                 '',
                 ''
             ),
+            'format to timesec with null value' => array(
+                array(
+                    'format' => 'timesec',
+                ),
+                null,
+                ''
+            ),
             'format to year' => array(
                 array(
                     'format' => 'year',
@@ -126,6 +147,20 @@ class NoneElementTest extends UnitTestCase
                 '1412358894',
                 '2014'
             ),
+            'format to year with empty value' => array(
+                array(
+                    'format' => 'year',
+                ),
+                '',
+                ''
+            ),
+            'format to year with null value' => array(
+                array(
+                    'format' => 'year',
+                ),
+                null,
+                ''
+            ),
             'format to int' => array(
                 array(
                     'format' => 'int',