Permalink
Browse files

Adding a test case for TextHelper::toList(). Closes #1043

  • Loading branch information...
1 parent 903b260 commit 465c24f90313299a3bfa1b8ffb22f710ba021b5b @markstory markstory committed Aug 27, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 cake/tests/cases/libs/view/helpers/text.test.php
@@ -407,5 +407,8 @@ function testListGeneration() {
$result = $this->Text->toList(array( 'name1' => 'Dusty', 'name2' => 'Lucky'));
$this->assertEqual($result, 'Dusty and Lucky');
+
+ $result = $this->Text->toList(array( 'test_0' => 'banana', 'test_1' => 'apple', 'test_2' => 'lemon'));
+ $this->assertEqual($result, 'banana, apple and lemon');
}
}

0 comments on commit 465c24f

Please sign in to comment.