test(gitlab): exercise startFetch()/resolveFetch() instead of fetch()

This commit is contained in:
2026-07-07 13:32:05 +02:00
parent c89b4e9212
commit 1e2f022579
@@ -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']);