Create test for RecurringRepository
ADD
tests/Unit/RecurringRepositoryTest.php
+<?php
+
+namespace Tests\Unit;
+
+use App\Repositories\RecurringRepository;
+use Tests\TestCase;
+
+class RecurringRepositoryTest extends TestCase
+{
+ private $recurringRepository;
+
+ public function setUp(): void
+ {
+ parent::setUp();
+
+ $this->recurringRepository = new RecurringRepository();
+ }
+
+ public function testCreation(): void
+ {
+ $spaceId = 1;
+ $tagId = 1;
+
+ $recurring = $this->recurringRepository->create($spaceId, 'spending', 3, null, $tagId, 'Test', 100);
+
+ $this->assertNotNull($recurring);
+ $this->assertEquals(10000, $recurring->amount);
+ }
+}

Create test for RecurringRepository