File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,16 @@ public function isDisabled()
137137 return $ this ->disabled ;
138138 }
139139
140+ /**
141+ * Set disabled value.
142+ *
143+ * @param bool
144+ */
145+ public function setDisabled (bool $ value )
146+ {
147+ $ this ->disabled = $ value ;
148+ }
149+
140150 /**
141151 * Return defined label or construct one based on the field name.
142152 *
Original file line number Diff line number Diff line change @@ -17,6 +17,13 @@ public function testConstruct()
1717 $ this ->assertAttributeEquals ("label " , "label " , $ stub );
1818 }
1919
20+ public function testSetDisabled ()
21+ {
22+ $ stub = $ this ->getMockForAbstractClass (Field::class);
23+ $ stub ->setDisabled (true );
24+ $ this ->assertAttributeEquals (true , 'disabled ' , $ stub );
25+ }
26+
2027 public function testToNative ()
2128 {
2229 $ stub = $ this ->getMockForAbstractClass (Field::class);
You can’t perform that action at this time.
0 commit comments