Skip to content

Commit

Permalink
fix tests better
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm committed Jan 9, 2024
1 parent cf07bd9 commit 78ec718
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Controller/WebhookControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ protected function setup(): void
}

$this->client = $this->createClient();
$repository = self::$container->get(RepositoryProvider::class);
$statusApi = self::$container->get(StatusApi::class);
$pullRequestApi = self::$container->get(PullRequestApi::class);
$repository = self::getContainer()->get(RepositoryProvider::class);
$statusApi = self::getContainer()->get(StatusApi::class);
$pullRequestApi = self::getContainer()->get(PullRequestApi::class);

ServiceMock::all($pullRequestApi, 'show', function ($repository, $id) {
if (4711 !== $id) {
Expand Down

0 comments on commit 78ec718

Please sign in to comment.