mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 01:06:46 +00:00
Update tests so repositories are not called. Saves on DB calls, speeds up tests.
This commit is contained in:
@@ -158,6 +158,8 @@ class RecurrenceControllerTest extends TestCase
|
||||
*/
|
||||
public function testEventsStartAfterEnd(): void
|
||||
{
|
||||
$repository = $this->mock(RecurringRepositoryInterface::class);
|
||||
|
||||
$parameters = [
|
||||
'start' => '2018-01-01',
|
||||
'end' => '2018-01-31',
|
||||
@@ -336,6 +338,8 @@ class RecurrenceControllerTest extends TestCase
|
||||
*/
|
||||
public function testSuggest(): void
|
||||
{
|
||||
$repository = $this->mock(RecurringRepositoryInterface::class);
|
||||
|
||||
$this->be($this->user());
|
||||
|
||||
$parameters = [
|
||||
|
Reference in New Issue
Block a user