+import Vapor
 import XCTest
 
 @testable import AdminPanel
 
 class BackendUserTests: XCTestCase {
     func testSendEmail() {
-        let (form, _) = BackendUserForm.validating(["sendEmail": "true"])
+        let content = Content()
+        content.append(Node(["sendEmail": "true"]))
+        let (form, _) = BackendUserForm.validating(content)
         XCTAssertTrue(form.sendMail)
     }
 

            role: nil,
            shouldResetPassword: nil,
            sendEmail: nil,
            password: "test",
            repeatPassword: nil
        )


            role: nil,
            shouldResetPassword: nil,
            sendEmail: false,
            password: "testtest",
            repeatPassword: "testtest"
        )
        XCTAssert(hasErrors)
        XCTAssertEqual(form.passwordErrors.count, 0)
