Skip to content

Commit d105e85

Browse files
Add test
1 parent ca7eeaa commit d105e85

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/BooleanAttributeTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,18 @@ public function it can disable a boolean attribute from an integer(): vo
234234
$this->assertNull($model->accepted_terms_at);
235235
}
236236

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+
237249
/**
238250
* @test
239251
*/

0 commit comments

Comments
 (0)