summaryrefslogtreecommitdiff
path: root/modules/gallery/tests
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2013-01-17 15:05:46 -0500
committerBharat Mediratta <bharat@menalto.com>2013-01-17 15:05:46 -0500
commitd04080c7be7c8a06bd81a9747943600812339f40 (patch)
treeb1147aaafda9938277cd859ae8d78e6e55255517 /modules/gallery/tests
parent9d684b7b83f0aa026e9d6f06228294f179a3bcaa (diff)
Follow-on to 94b26e506c339f50b8d094057bffc1877a79afa9 - make the new legal_file
functions more robust when passed an unknown extension. Fixes Item_Model_Test.
Diffstat (limited to 'modules/gallery/tests')
-rw-r--r--modules/gallery/tests/Item_Model_Test.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/tests/Item_Model_Test.php b/modules/gallery/tests/Item_Model_Test.php
index 8ae8a5dd..a3929e62 100644
--- a/modules/gallery/tests/Item_Model_Test.php
+++ b/modules/gallery/tests/Item_Model_Test.php
@@ -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";