Browse Source

Add tests for Radio options and string disabled.

Mark Story 12 years ago
parent
commit
49299f7f43
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tests/TestCase/View/Widget/RadioTest.php

+ 4 - 0
tests/TestCase/View/Widget/RadioTest.php

@@ -446,6 +446,10 @@ class RadioTest extends TestCase {
 		];
 		$this->assertTags($result, $expected);
 
+		$data['disabled'] = 'a string';
+		$result = $radio->render($data);
+		$this->assertTags($result, $expected);
+
 		$data['disabled'] = ['1'];
 		$result = $radio->render($data);
 		$expected = [