diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-04-04 14:27:39 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-04-04 14:27:39 -0700 |
commit | 78db1bb339042f3aadb5a61bfe26ddd20c4b8951 (patch) | |
tree | 87d5e73693fdc4d7cfbfdc101a73b72f6b7c48c3 /modules/gallery/tests | |
parent | 668c12da1cd6add3c7a734f34c84bd87700b2141 (diff) |
Fix a bug where if the file name is composed of entirely illegal
characters, we'll get an empty slug. Partial fix for #1086.
Diffstat (limited to 'modules/gallery/tests')
-rw-r--r-- | modules/gallery/tests/Item_Model_Test.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/gallery/tests/Item_Model_Test.php b/modules/gallery/tests/Item_Model_Test.php index d0676292..8ab85a30 100644 --- a/modules/gallery/tests/Item_Model_Test.php +++ b/modules/gallery/tests/Item_Model_Test.php @@ -324,6 +324,12 @@ class Item_Model_Test extends Gallery_Unit_Test_Case { $album->save(); } + public function name_with_only_invalid_chars_is_still_valid_test() { + $album = test::random_album_unsaved(); + $album->name = "[]"; + $album->save(); + } + public function cant_change_item_type_test() { $photo = test::random_photo(); try { |