mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-17 15:18:05 +00:00
Improve test coverage.
This commit is contained in:
@@ -57,7 +57,7 @@ class DeleteControllerTest extends TestCase
|
||||
// mock stuff
|
||||
$this->mock(BudgetRepositoryInterface::class);
|
||||
|
||||
$userRepos = $this->mock(UserRepositoryInterface::class);
|
||||
$userRepos = $this->mock(UserRepositoryInterface::class);
|
||||
$userRepos->shouldReceive('hasRole')->withArgs([Mockery::any(), 'owner'])->andReturn(true)->atLeast()->once();
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ class DeleteControllerTest extends TestCase
|
||||
$budget = $this->getRandomBudget();
|
||||
Log::debug('Now in testDestroy()');
|
||||
// mock stuff
|
||||
$repository = $this->mock(BudgetRepositoryInterface::class);
|
||||
$repository = $this->mock(BudgetRepositoryInterface::class);
|
||||
$this->mock(UserRepositoryInterface::class);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user