Skip to content

Commit c56241c

Browse files
author
Pooya Parsa
committed
Dot-Notation Fill Tests
1 parent f1f5895 commit c56241c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/ModelTest.php

+7
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,13 @@ public function testDotNotation()
486486
$this->assertEquals('Paris', $user->getAttribute('address.city'));
487487
$this->assertEquals('Paris', $user['address.city']);
488488
$this->assertEquals('Paris', $user->{'address.city'});
489+
490+
// Fill
491+
$user->fill([
492+
'address.city' => 'Strasbourg',
493+
]);
494+
495+
$this->assertEquals('Strasbourg', $user['address.city']);
489496
}
490497

491498
public function testGetDirtyDates()

0 commit comments

Comments
 (0)