Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiaanluca committed Mar 13, 2022
1 parent ca7eeaa commit d105e85
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/BooleanAttributeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,18 @@ public function it can disable a boolean attribute from an integer(): vo
$this->assertNull($model->accepted_terms_at);
}

/**
* @test
*/
public function it can disable a boolean attribute from an empty string(): void
{
$model = new TestModel;

$model->has_accepted_terms = '';

$this->assertNull($model->accepted_terms_at);
}

/**
* @test
*/
Expand Down

0 comments on commit d105e85

Please sign in to comment.