mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Fix test coverage.
This commit is contained in:
@@ -50,6 +50,7 @@ class CreateControllerTest extends TestCase
|
||||
public function testCreate(): void
|
||||
{
|
||||
$this->mockDefaultSession();
|
||||
$this->mockIntroPreference('shown_demo_transactions_create_withdrawal');
|
||||
$accountRepos = $this->mock(AccountRepositoryInterface::class);
|
||||
$userRepos = $this->mock(UserRepositoryInterface::class);
|
||||
$cash = $this->getRandomAsset();
|
||||
@@ -63,7 +64,7 @@ class CreateControllerTest extends TestCase
|
||||
|
||||
|
||||
$this->be($this->user());
|
||||
$response = $this->get(route('transactions.create'));
|
||||
$response = $this->get(route('transactions.create', ['withdrawal']));
|
||||
$response->assertStatus(200);
|
||||
}
|
||||
}
|
@@ -133,7 +133,7 @@ class LinkControllerTest extends TestCase
|
||||
|
||||
$response->assertStatus(302);
|
||||
$response->assertSessionHas('success');
|
||||
$response->assertRedirect(route('transactions.show', [$withdrawal->id]));
|
||||
$response->assertRedirect(route('transactions.show', [$withdrawal->transaction_group_id]));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user