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