public function testCreateUserHelper() { $password = '******'; $email = '*****@*****.**'; $user = User::createWithKeys($email, $password); $this->assertTrue($user instanceof User); $this->assertTrue($user->getAccountKey() instanceof Key); $this->assertTrue($user->validation()); $data = '~super fire acid sheep was here~'; $encrypted = $user->getAccountKey()->encrypt($data); $decrypted = $user->getAccountKey()->decrypt($encrypted, $user->getAccountKeyPassphrase($password)); $this->assertEquals($data, $decrypted); }