We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca7eeaa commit d105e85Copy full SHA for d105e85
tests/BooleanAttributeTest.php
@@ -234,6 +234,18 @@ public function it can disable a boolean attribute from an integer(): vo
234
$this->assertNull($model->accepted_terms_at);
235
}
236
237
+ /**
238
+ * @test
239
+ */
240
+ public function it can disable a boolean attribute from an empty string(): void
241
+ {
242
+ $model = new TestModel;
243
+
244
+ $model->has_accepted_terms = '';
245
246
+ $this->assertNull($model->accepted_terms_at);
247
+ }
248
249
/**
250
* @test
251
*/
0 commit comments