File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -164,12 +164,14 @@ public function testCleanWhenFloatUpdateAttribute()
164
164
// test is equivalent
165
165
$ model = new EloquentModelStub (['castedFloat ' => 8 - 6.4 ]);
166
166
$ model ->syncOriginal ();
167
- $ this ->assertTrue ($ model ->originalIsEquivalent ('castedFloat ' , 1.6 ));
167
+ $ model ->castedFloat = 1.6 ;
168
+ $ this ->assertTrue ($ model ->originalIsEquivalent ('castedFloat ' ));
168
169
169
170
// test is not equivalent
170
171
$ model = new EloquentModelStub (['castedFloat ' => 5.6 ]);
171
172
$ model ->syncOriginal ();
172
- $ this ->assertFalse ($ model ->originalIsEquivalent ('castedFloat ' , 5.5 ));
173
+ $ model ->castedFloat = 5.5 ;
174
+ $ this ->assertFalse ($ model ->originalIsEquivalent ('castedFloat ' ));
173
175
}
174
176
175
177
public function testCalculatedAttributes ()
You can’t perform that action at this time.
0 commit comments