summaryrefslogtreecommitdiff
path: root/modules/tag/tests
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2008-11-26 05:08:43 +0000
committerTim Almdal <tnalmdal@shaw.ca>2008-11-26 05:08:43 +0000
commit03bf3a6af26a5311ab0411616911c443332a8821 (patch)
treee8b6b0f093c2cb721f55268b78a5f9b87cb27446 /modules/tag/tests
parent9c60566197a1edeb1c7d758886c8d518b5b99388 (diff)
Remove the more or less links
Diffstat (limited to 'modules/tag/tests')
-rw-r--r--modules/tag/tests/Tag_Test.php31
1 files changed, 9 insertions, 22 deletions
diff --git a/modules/tag/tests/Tag_Test.php b/modules/tag/tests/Tag_Test.php
index 0a7f878c..1a4f7698 100644
--- a/modules/tag/tests/Tag_Test.php
+++ b/modules/tag/tests/Tag_Test.php
@@ -51,30 +51,17 @@ class Tag_Test extends Unit_Test_Case {
}
$tag_list = tag::load_buckets();
- Kohana::log("debug", print_r($tag_list, true));
+
$expected_tag_list = array(
- array("name" => "tag0", "count" => 8, "class" => 5),
- array("name" => "tag1", "count" => 9, "class" => 6),
- array("name" => "tag2", "count" => 6, "class" => 4),
- array("name" => "tag3", "count" => 5, "class" => 3),
- array("name" => "tag4", "count" => 4, "class" => 2),
- array("name" => "tag5", "count" => 3, "class" => 1),
- array("name" => "tag6", "count" => 2, "class" => 0),
- array("name" => "tag7", "count" => 1, "class" => 0)
+ array("id" => "2", "name" => "tag0", "count" => 8, "class" => 5),
+ array("id" => "1", "name" => "tag1", "count" => 9, "class" => 6),
+ array("id" => "3", "name" => "tag2", "count" => 6, "class" => 4),
+ array("id" => "4", "name" => "tag3", "count" => 5, "class" => 3),
+ array("id" => "5", "name" => "tag4", "count" => 4, "class" => 2),
+ array("id" => "6", "name" => "tag5", "count" => 3, "class" => 1),
+ array("id" => "7", "name" => "tag6", "count" => 2, "class" => 0),
+ array("id" => "8", "name" => "tag7", "count" => 1, "class" => 0)
);
$this->assert_equal($expected_tag_list, $tag_list, "incorrect non filtered tag list");
-
- $tag_list = tag::load_buckets(2);
- Kohana::log("debug", print_r($tag_list, true));
- $expected_tag_list = array(
- array("name" => "tag0", "count" => 8, "class" => 5),
- array("name" => "tag1", "count" => 9, "class" => 6),
- array("name" => "tag2", "count" => 6, "class" => 4),
- array("name" => "tag3", "count" => 5, "class" => 3),
- array("name" => "tag4", "count" => 4, "class" => 2),
- array("name" => "tag5", "count" => 3, "class" => 1),
- array("name" => "tag6", "count" => 2, "class" => 0)
- );
- $this->assert_equal($expected_tag_list, $tag_list, "incorrect filtered tag list");
}
} \ No newline at end of file