mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-14 16:13:54 +00:00
Expand test code for create export routine.
This commit is contained in:
@@ -158,6 +158,7 @@ class UserRepository implements UserRepositoryInterface
|
||||
/**
|
||||
* @param int $userId
|
||||
*
|
||||
* @deprecated
|
||||
* @return User
|
||||
*/
|
||||
public function find(int $userId): User
|
||||
@@ -180,6 +181,16 @@ class UserRepository implements UserRepositoryInterface
|
||||
return User::where('email', $email)->first();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $userId
|
||||
*
|
||||
* @return User|null
|
||||
*/
|
||||
public function findNull(int $userId): ?User
|
||||
{
|
||||
return User::find($userId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the first user in the DB. Generally only works when there is just one.
|
||||
*
|
||||
|
@@ -103,11 +103,17 @@ interface UserRepositoryInterface
|
||||
|
||||
/**
|
||||
* @param int $userId
|
||||
*
|
||||
* @deprecated
|
||||
* @return User
|
||||
*/
|
||||
public function find(int $userId): User;
|
||||
|
||||
/**
|
||||
* @param int $userId
|
||||
* @return User|null
|
||||
*/
|
||||
public function findNull(int $userId): ?User;
|
||||
|
||||
/**
|
||||
* @param string $email
|
||||
*
|
||||
|
Reference in New Issue
Block a user