public function test_Should_PassToValidate_When_EmailFieldIsNotUniqueAndIdFieldIsSpecified() { $arrangedUser = Factory::create('App\\Models\\User', ['email' => '*****@*****.**']); $input = ['id' => $arrangedUser->id, 'email' => '*****@*****.**']; $form = new UserFormLaravelValidator($this->app['validator']); $result = $form->with($input)->passes(); $errors = $form->errors(); $this->assertTrue($result, 'Expected validation to succeed.'); $this->assertEmpty($errors); }