mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-16 22:58:09 +00:00
Improve test coverage.
This commit is contained in:
@@ -257,6 +257,12 @@ class IndexControllerTest extends TestCase
|
||||
*/
|
||||
public function testReorder(): void
|
||||
{
|
||||
$this->mockDefaultSession();
|
||||
|
||||
$pref = new Preference;
|
||||
$pref->data = 50;
|
||||
Preferences::shouldReceive('get')->withArgs(['listPageSize', 50])->atLeast()->once()->andReturn($pref);
|
||||
|
||||
$repository = $this->mock(BudgetRepositoryInterface::class);
|
||||
$data = [
|
||||
'budgetIds' => [1, 2],
|
||||
|
||||
Reference in New Issue
Block a user