Skip to content

Commit

Permalink
fixing unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
jgivoni committed Feb 11, 2025
1 parent 4b20e3f commit 477cc7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3.2'

name: flysystem-cache-adapter

services:
Expand Down
7 changes: 2 additions & 5 deletions tests/GetChecksum_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,8 @@ public static function dataProvider(): iterable
*/
public function with_mock_aws_adapter(string $path, string $expectedChecksum): void
{
/** @var AwsS3V3Adapter&MockInterface $awsAdapter */
$awsAdapter = Mockery::mock(AwsS3V3Adapter::class);
$awsAdapter->shouldReceive([
'checksum' => 'my-aws-etag',
]);
$awsAdapter = $this->createMock(AwsS3V3Adapter::class);
$awsAdapter->method('checksum')->with('non-cached-file')->willReturn('my-aws-etag');

$this->cacheAdapter = new CacheAdapter($awsAdapter, $this->cachePool);

Expand Down

0 comments on commit 477cc7b

Please sign in to comment.