From ff1d0fccf766764d0fa925f2ac9336c5543bb31d Mon Sep 17 00:00:00 2001 From: David Rothstein Date: Sun, 4 Nov 2012 23:19:40 -0500 Subject: Issue #1809836 by danillonunes: Fixed theme_item_list() is broken when 'items' variable is an associative array. --- modules/simpletest/tests/theme.test | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'modules/simpletest/tests') diff --git a/modules/simpletest/tests/theme.test b/modules/simpletest/tests/theme.test index 27a8e47b9..0ee473e3f 100644 --- a/modules/simpletest/tests/theme.test +++ b/modules/simpletest/tests/theme.test @@ -230,18 +230,19 @@ class ThemeItemListUnitTest extends DrupalWebTestCase { } /** - * Test nested list rendering. + * Test item list rendering. */ - function testNestedList() { - $items = array('a', array('data' => 'b', 'children' => array('c', 'd')), 'e'); + function testItemList() { + $items = array('a', array('data' => 'b', 'children' => array('c' => 'c', 'd' => 'd', 'e' => 'e')), 'f'); $expected = '
+
  • f
  • '; $output = theme('item_list', array('items' => $items)); - $this->assertIdentical($expected, $output, 'Nested list is rendered correctly.'); + $this->assertIdentical($expected, $output, 'Item list is rendered correctly.'); } } -- cgit v1.2.3