Skip to content

Commit

Permalink
Add doc blocks to several methods in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samihsoylu committed Sep 2, 2023
1 parent dbec542 commit a5587f7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tests/Framework/Core/ActionTestHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

final class ActionTestHelper
{
/**
* @return array{SpySeriesRepository, FakeAnimeEpisodeRepository}
*/
public function createCrunchyrollToNotionSyncActionSpies(
string $serieName = 'Naruto',
int $notionCurrentSeason = 1,
Expand Down
3 changes: 2 additions & 1 deletion tests/Framework/Core/CrunchyrollTestHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace SamihSoylu\CrunchyrollSyncer\Tests\Framework\Core;

use GuzzleHttp\Client as GuzzleHttpClient;
use Mockery;
use SamihSoylu\CrunchyrollSyncer\Api\Crunchyroll\Entity\AnimeEpisode;
use SamihSoylu\CrunchyrollSyncer\Tests\Framework\Builder\AnimeEpisodeBuilder;
use SamihSoylu\CrunchyrollSyncer\Tests\Framework\TestDouble\Fake\FakeAnimeEpisodeRepository;
Expand Down Expand Up @@ -45,7 +46,7 @@ public function createMockHttpClient(
string $with,
mixed $willReturn
): GuzzleHttpClient {
$client = \Mockery::mock(GuzzleHttpClient::class);
$client = Mockery::mock(GuzzleHttpClient::class);
$client->shouldReceive($method)
->once()
->with($with)
Expand Down
3 changes: 3 additions & 0 deletions tests/Framework/Core/TestKit.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ public function getTestDoubleDir(): string
return dirname(__DIR__) . '/TestDouble';
}

/**
* @param array<array-key, mixed> $args
*/
public function executeConsoleCommand(Command $command, array $args = []): CommandTester
{
$console = new Application();
Expand Down

0 comments on commit a5587f7

Please sign in to comment.