From 9bf5c3e6ee8973e970593cd825bb5e517afa56da Mon Sep 17 00:00:00 2001 From: mark_story Date: Tue, 14 Jan 2014 22:41:11 -0500 Subject: [PATCH] Add additional disabled tests & doc blocks. --- tests/TestCase/View/Input/CheckboxTest.php | 5 +++++ tests/TestCase/View/Input/MultiCheckboxTest.php | 8 ++++++++ tests/TestCase/View/Input/RadioTest.php | 5 +++++ tests/TestCase/View/Input/SelectBoxTest.php | 5 +++++ 4 files changed, 23 insertions(+) diff --git a/tests/TestCase/View/Input/CheckboxTest.php b/tests/TestCase/View/Input/CheckboxTest.php index 9b9c110f310..6622ea64d59 100644 --- a/tests/TestCase/View/Input/CheckboxTest.php +++ b/tests/TestCase/View/Input/CheckboxTest.php @@ -23,6 +23,11 @@ */ class CheckboxTest extends TestCase { +/** + * setup method. + * + * @return void + */ public function setUp() { parent::setUp(); $templates = [ diff --git a/tests/TestCase/View/Input/MultiCheckboxTest.php b/tests/TestCase/View/Input/MultiCheckboxTest.php index 3a02ea2fe05..872fa638317 100644 --- a/tests/TestCase/View/Input/MultiCheckboxTest.php +++ b/tests/TestCase/View/Input/MultiCheckboxTest.php @@ -23,6 +23,11 @@ */ class MultiCheckboxTest extends TestCase { +/** + * setup method. + * + * @return void + */ public function setUp() { parent::setUp(); $templates = [ @@ -203,6 +208,9 @@ public function testRenderDisabled() { ]; $this->assertTags($result, $expected); + $data['disabled'] = ['1', '1x']; + $this->assertTags($result, $expected); + $data = [ 'name' => 'Tags[id]', 'options' => [ diff --git a/tests/TestCase/View/Input/RadioTest.php b/tests/TestCase/View/Input/RadioTest.php index f91c016290b..afb5cfe38fb 100644 --- a/tests/TestCase/View/Input/RadioTest.php +++ b/tests/TestCase/View/Input/RadioTest.php @@ -24,6 +24,11 @@ */ class RadioTest extends TestCase { +/** + * setup method. + * + * @return void + */ public function setUp() { parent::setUp(); $templates = [ diff --git a/tests/TestCase/View/Input/SelectBoxTest.php b/tests/TestCase/View/Input/SelectBoxTest.php index 1c31c5adb66..677f22d8bb0 100644 --- a/tests/TestCase/View/Input/SelectBoxTest.php +++ b/tests/TestCase/View/Input/SelectBoxTest.php @@ -23,6 +23,11 @@ */ class SelectBoxTest extends TestCase { +/** + * setup method. + * + * @return void + */ public function setUp() { parent::setUp(); $templates = [