Skip to content

Commit

Permalink
Add test for original attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravan Scafi committed Dec 11, 2019
1 parent 2efb818 commit b3544b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Mongolid/Model/AttributesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,10 @@ public function testShouldSetOriginalAttributes()

// Act
$model->syncOriginalAttributes();
$result = $model->originalAttributes();

// Assert
$this->assertAttributeEquals($model->attributes, 'original', $model);
$this->assertSame(['name' => 'John', 'age' => 25], $result);
}

public function getFillableOptions()
Expand Down

0 comments on commit b3544b1

Please sign in to comment.