summaryrefslogtreecommitdiff
path: root/modules/gallery/tests
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-06-13 09:59:27 -0700
committerTim Almdal <tnalmdal@shaw.ca>2010-06-13 09:59:27 -0700
commit938eea7fc45d5ad26529a14f349b7e4be2fecb15 (patch)
tree903f5fd467565b16e7e65d84101060920b1449b7 /modules/gallery/tests
parent0ebc36b4e5ef5578791c00b8a64021d3aad96068 (diff)
parent87f8b6ff0a76f51183f14515723a8345f7c14fa6 (diff)
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'modules/gallery/tests')
-rw-r--r--modules/gallery/tests/Item_Helper_Test.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/gallery/tests/Item_Helper_Test.php b/modules/gallery/tests/Item_Helper_Test.php
index 4771b11a..00229973 100644
--- a/modules/gallery/tests/Item_Helper_Test.php
+++ b/modules/gallery/tests/Item_Helper_Test.php
@@ -41,6 +41,11 @@ class Item_Helper_Test extends Gallery_Unit_Test_Case {
ORM::factory("item")->viewable()->where("id", "=", $item->id)->count_all());
}
+ public function convert_filename_to_title_test() {
+ $this->assert_equal("foo", item::convert_filename_to_title("foo.jpg"));
+ $this->assert_equal("foo.bar", item::convert_filename_to_title("foo.bar.jpg"));
+ }
+
public function convert_filename_to_slug_test() {
$this->assert_equal("foo", item::convert_filename_to_slug("{[foo]}"));
$this->assert_equal("foo-bar", item::convert_filename_to_slug("{[foo!@#!$@#^$@($!(@bar]}"));