From 7a397f4ac4823d64bd0f6e0e8a1c236b7bfb3a5b Mon Sep 17 00:00:00 2001 From: Alexandr Chernyaev Date: Thu, 25 Jul 2024 10:35:48 +0300 Subject: [PATCH] refs #2864 Added tests for fields overwrite attributes --- tests/Unit/Screen/Fields/InputTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/Unit/Screen/Fields/InputTest.php b/tests/Unit/Screen/Fields/InputTest.php index 0f08b9b2b..7515d29ed 100644 --- a/tests/Unit/Screen/Fields/InputTest.php +++ b/tests/Unit/Screen/Fields/InputTest.php @@ -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')); + } }