public function testValidateShouldSkipUnchangedHashedAttributes()
{
// Set
$model = new class extends MongolidModel
{
public static $rules = ['name' => 'required'];
protected $hashedAttributes = ['password'];
};
$model->name = 'name';
$model->password = 'HASHED_PASSWORD';
$model->storeOriginalAttributes();
// Actions
$result = $model->isValid();
// Assertions
$this->assertTrue($result);
$this->assertEmpty($model->errors()->all());
}