@@ -1360,7 +1360,7 @@ public static function get_compiled_fields_data_provider() {
13601360 $ test_message = 'Hello, this is a test message from our contact form. ' ;
13611361
13621362 return array (
1363- 'all_format ' => array (
1363+ 'all_format ' => array (
13641364 'format ' => 'all ' ,
13651365 'expected ' => array (
13661366 '1_Name ' => array (
@@ -1382,7 +1382,7 @@ public static function get_compiled_fields_data_provider() {
13821382 ),
13831383 'message ' => 'Compiled fields should match the default form structure with all field data. ' ,
13841384 ),
1385- 'key_value_format ' => array (
1385+ 'key_value_format ' => array (
13861386 'format ' => 'key-value ' ,
13871387 'expected ' => array (
13881388 '1_Name ' => $ test_name ,
@@ -1392,7 +1392,29 @@ public static function get_compiled_fields_data_provider() {
13921392 ),
13931393 'message ' => 'Compiled fields should return key-value pairs only. ' ,
13941394 ),
1395- 'value_format ' => array (
1395+ 'label-value_format ' => array (
1396+ 'format ' => 'label|value ' ,
1397+ 'expected ' => array (
1398+ array (
1399+ 'label ' => 'Name ' ,
1400+ 'value ' => $ test_name ,
1401+ ),
1402+ array (
1403+ 'label ' => 'Email ' ,
1404+ 'value ' => $ test_email ,
1405+ ),
1406+ array (
1407+ 'label ' => 'Website ' ,
1408+ 'value ' => $ test_website ,
1409+ ),
1410+ array (
1411+ 'label ' => 'Message ' ,
1412+ 'value ' => $ test_message ,
1413+ ),
1414+ ),
1415+ 'message ' => 'Compiled fields should returnlabel|value pairs only. ' ,
1416+ ),
1417+ 'value_format ' => array (
13961418 'format ' => 'value ' ,
13971419 'expected ' => array (
13981420 $ test_name ,
@@ -1402,7 +1424,7 @@ public static function get_compiled_fields_data_provider() {
14021424 ),
14031425 'message ' => 'Compiled fields should return only values as indexed array. ' ,
14041426 ),
1405- 'label_format ' => array (
1427+ 'label_format ' => array (
14061428 'format ' => 'label ' ,
14071429 'expected ' => array (
14081430 'Name ' ,
0 commit comments