Follow-on to 94b26e506c - make the new legal_file

functions more robust when passed an unknown extension.  Fixes Item_Model_Test.
This commit is contained in:
Bharat Mediratta
2013-01-17 15:05:46 -05:00
parent 9d684b7b83
commit d04080c7be
3 changed files with 27 additions and 4 deletions
+1 -1
View File
@@ -356,7 +356,7 @@ class Item_Model_Test extends Gallery_Unit_Test_Case {
public function movie_files_must_have_an_extension_test() {
try {
$movie = test::random_photo_unsaved();
$movie = test::random_movie_unsaved();
$movie->type = "movie";
$movie->mime_type = "video/x-flv";
$movie->name = "no_extension";