Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tonysm committed Mar 10, 2024
1 parent 594c4e3 commit eb4ebd4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/Feature/GitHubTagsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Tests\Feature;

use App\Services\Buggregator;
use App\Shell\DockerTags;
use App\Shell\GitHubDockerTags;
use GuzzleHttp\Client;
use GuzzleHttp\Handler\MockHandler;
Expand All @@ -21,7 +20,7 @@ function it_fetches_latest_tag()
$handlerStack = HandlerStack::create($this->mockImagesResponseHandler());
$client = new Client(['handler' => $handlerStack]);

/** @var DockerTags $dockerTags */
/** @var GitHubDockerTags $dockerTags */
$dockerTags = M::mock(GitHubDockerTags::class, [$client, app(Buggregator::class)])->makePartial();

$this->assertEquals('latest', $dockerTags->getLatestTag());
Expand All @@ -33,7 +32,7 @@ function it_throws_exception_when_token_request_fails()
$handlerStack = HandlerStack::create($this->mockImagesResponseHandler(false));
$client = new Client(['handler' => $handlerStack]);

/** @var DockerTags $dockerTags */
/** @var GitHubDockerTags $dockerTags */
$dockerTags = M::mock(GitHubDockerTags::class, [$client, app(Buggregator::class)])->makePartial();

$this->expectException(RuntimeException::class);
Expand Down

0 comments on commit eb4ebd4

Please sign in to comment.