From cc782f1402f94f25f23b6400a797a39a758ae782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 18 Sep 2012 10:36:50 +0200 Subject: [PATCH] Add test for getting available types --- test/libraries/PMA_transformation_test.php | 61 +++++++++++++++++++++- 1 file changed, 59 insertions(+), 2 deletions(-) diff --git a/test/libraries/PMA_transformation_test.php b/test/libraries/PMA_transformation_test.php index 25f70b5ce4..caa2e9f014 100644 --- a/test/libraries/PMA_transformation_test.php +++ b/test/libraries/PMA_transformation_test.php @@ -1,7 +1,7 @@ assertEquals( + array ( + 'mimetype' => array ( + 'Application/Octetstream' => 'Application/Octetstream', + 'Image/JPEG' => 'Image/JPEG', + 'Image/PNG' => 'Image/PNG', + 'Text/Plain' => 'Text/Plain', + ), + 'transformation' => array ( + 0 => 'Application/Octetstream: Download', + 1 => 'Application/Octetstream: Hex', + 2 => 'Image/JPEG: Inline', + 3 => 'Image/JPEG: Link', + 4 => 'Image/PNG: Inline', + 5 => 'Text/Plain: Append', + 6 => 'Text/Plain: Dateformat', + 7 => 'Text/Plain: External', + 8 => 'Text/Plain: Formatted', + 9 => 'Text/Plain: Imagelink', + 10 => 'Text/Plain: Link', + 11 => 'Text/Plain: Longtoipv4', + 12 => 'Text/Plain: Sql', + 13 => 'Text/Plain: Substring', + ), + 'transformation_file' => array ( + 0 => 'Application_Octetstream_Download.class.php', + 1 => 'Application_Octetstream_Hex.class.php', + 2 => 'Image_JPEG_Inline.class.php', + 3 => 'Image_JPEG_Link.class.php', + 4 => 'Image_PNG_Inline.class.php', + 5 => 'Text_Plain_Append.class.php', + 6 => 'Text_Plain_Dateformat.class.php', + 7 => 'Text_Plain_External.class.php', + 8 => 'Text_Plain_Formatted.class.php', + 9 => 'Text_Plain_Imagelink.class.php', + 10 => 'Text_Plain_Link.class.php', + 11 => 'Text_Plain_Longtoipv4.class.php', + 12 => 'Text_Plain_Sql.class.php', + 13 => 'Text_Plain_Substring.class.php', + ), + ), + PMA_getAvailableMIMEtypes() + ); + } } ?>