Save to database #13

Merged
haylan merged 42 commits from save-to-database into main 2026-07-12 21:51:57 +00:00
Showing only changes of commit 1e2f022579 - Show all commits
@@ -71,7 +71,8 @@ final class GitLabProviderTest extends TestCase
$this->expectException(NotFoundHttpException::class); $this->expectException(NotFoundHttpException::class);
$this->makeProvider(client: $client)->fetch(); $provider = $this->makeProvider(client: $client);
$provider->resolveFetch($provider->startFetch());
} }
#[Test] #[Test]
@@ -92,7 +93,8 @@ final class GitLabProviderTest extends TestCase
} }
); );
$result = $this->makeProvider(client: $client)->fetch(); $provider = $this->makeProvider(client: $client);
$result = $provider->resolveFetch($provider->startFetch());
$this->assertSame(2, $result['2024-06-10']); $this->assertSame(2, $result['2024-06-10']);
$this->assertSame(1, $result['2024-06-11']); $this->assertSame(1, $result['2024-06-11']);
@@ -119,7 +121,8 @@ final class GitLabProviderTest extends TestCase
} }
); );
$result = $this->makeProvider(client: $client)->fetch(); $provider = $this->makeProvider(client: $client);
$result = $provider->resolveFetch($provider->startFetch());
$this->assertSame(2, $callCount); $this->assertSame(2, $callCount);
$this->assertSame(100, $result['2024-06-10']); $this->assertSame(100, $result['2024-06-10']);