File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,16 @@ public function isDisabled()
137
137
return $ this ->disabled ;
138
138
}
139
139
140
+ /**
141
+ * Set disabled value.
142
+ *
143
+ * @param bool
144
+ */
145
+ public function setDisabled (bool $ value )
146
+ {
147
+ $ this ->disabled = $ value ;
148
+ }
149
+
140
150
/**
141
151
* Return defined label or construct one based on the field name.
142
152
*
Original file line number Diff line number Diff line change @@ -17,6 +17,13 @@ public function testConstruct()
17
17
$ this ->assertAttributeEquals ("label " , "label " , $ stub );
18
18
}
19
19
20
+ public function testSetDisabled ()
21
+ {
22
+ $ stub = $ this ->getMockForAbstractClass (Field::class);
23
+ $ stub ->setDisabled (true );
24
+ $ this ->assertAttributeEquals (true , 'disabled ' , $ stub );
25
+ }
26
+
20
27
public function testToNative ()
21
28
{
22
29
$ stub = $ this ->getMockForAbstractClass (Field::class);
You can’t perform that action at this time.
0 commit comments