Fix a bug where if the file name is composed of entirely illegal

characters, we'll get an empty slug.  Partial fix for #1086.
This commit is contained in:
Bharat Mediratta
2010-04-04 14:27:39 -07:00
parent 668c12da1c
commit 78db1bb339
2 changed files with 12 additions and 0 deletions
@@ -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 {