Skip to content

Commit

Permalink
refs #2864 Added tests for fields overwrite attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna committed Jul 25, 2024
1 parent e5ac3b6 commit 7a397f4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/Unit/Screen/Fields/InputTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,12 @@ public function testMediumLongNumericValue(): void

$this->assertEquals('66666666666666666666', $input);
}
public function testOverwriteAttributes(): void
{
$input = Input::make()
->set('title', 'John Doe')
->set('title', null);

$this->assertNull($input->get('title'));
}
}

0 comments on commit 7a397f4

Please sign in to comment.