mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Improve testing of middleware.
This commit is contained in:
@@ -88,7 +88,17 @@ abstract class TestCase extends BaseTestCase
|
||||
/**
|
||||
* @return User
|
||||
*/
|
||||
public function emptyUser()
|
||||
public function demoUser(): User
|
||||
{
|
||||
$user = User::find(4);
|
||||
|
||||
return $user;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return User
|
||||
*/
|
||||
public function emptyUser(): User
|
||||
{
|
||||
$user = User::find(2);
|
||||
|
||||
@@ -98,7 +108,7 @@ abstract class TestCase extends BaseTestCase
|
||||
/**
|
||||
* @return User
|
||||
*/
|
||||
public function user()
|
||||
public function user(): User
|
||||
{
|
||||
$user = User::find(1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user