test(gitlab): exercise startFetch()/resolveFetch() instead of fetch()
This commit is contained in:
@@ -71,7 +71,8 @@ final class GitLabProviderTest extends TestCase
|
||||
|
||||
$this->expectException(NotFoundHttpException::class);
|
||||
|
||||
$this->makeProvider(client: $client)->fetch();
|
||||
$provider = $this->makeProvider(client: $client);
|
||||
$provider->resolveFetch($provider->startFetch());
|
||||
}
|
||||
|
||||
#[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(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(100, $result['2024-06-10']);
|
||||
|
||||
Reference in New Issue
Block a user