Browse Source

Add a few more assertions.

Add some boundary checks around min/max year options.
mark_story 10 years ago
parent
commit
aa0907c5bc
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tests/TestCase/View/Helper/FormHelperTest.php

+ 3 - 0
tests/TestCase/View/Helper/FormHelperTest.php

@@ -5922,6 +5922,9 @@ class FormHelperTest extends TestCase
             'default' => true
         ]);
         $this->assertContains('value="2008" selected="selected"', $result);
+        $this->assertContains('value="2006"', $result);
+        $this->assertNotContains('value="2005"', $result);
+        $this->assertNotContains('value="2009"', $result);
     }
 
     /**