summaryrefslogtreecommitdiff
path: root/core/tests/Album_Helper_Test.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/tests/Album_Helper_Test.php')
-rw-r--r--core/tests/Album_Helper_Test.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/tests/Album_Helper_Test.php b/core/tests/Album_Helper_Test.php
index 522d58d9..80afa8d1 100644
--- a/core/tests/Album_Helper_Test.php
+++ b/core/tests/Album_Helper_Test.php
@@ -71,4 +71,17 @@ class Album_Helper_Test extends Unit_Test_Case {
$this->assert_true(false, "Shouldn't create an album with / in the name");
}
+
+ public function create_album_silently_trims_trailing_periods_test() {
+ $rand = rand();
+ $root = ORM::factory("item", 1);
+ try {
+ $album = album::create($root, $rand . "..", $rand, $rand);
+ } catch (Exception $e) {
+ $this->assert_equal("@todo NAME_CANNOT_END_IN_PERIOD", $e->getMessage());
+ return;
+ }
+
+ $this->assert_true(false, "Shouldn't create an album with trailing . in the name");
+ }
}