Skip to content

Commit c0438a6

Browse files
committed
fix tests
1 parent 723dc28 commit c0438a6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/Database/DatabaseEloquentModelTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,14 @@ public function testCleanWhenFloatUpdateAttribute()
164164
// test is equivalent
165165
$model = new EloquentModelStub(['castedFloat' => 8 - 6.4]);
166166
$model->syncOriginal();
167-
$this->assertTrue($model->originalIsEquivalent('castedFloat', 1.6));
167+
$model->castedFloat = 1.6;
168+
$this->assertTrue($model->originalIsEquivalent('castedFloat'));
168169

169170
// test is not equivalent
170171
$model = new EloquentModelStub(['castedFloat' => 5.6]);
171172
$model->syncOriginal();
172-
$this->assertFalse($model->originalIsEquivalent('castedFloat', 5.5));
173+
$model->castedFloat = 5.5;
174+
$this->assertFalse($model->originalIsEquivalent('castedFloat'));
173175
}
174176

175177
public function testCalculatedAttributes()

0 commit comments

Comments
 (0)