Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/Unit/Cdn/Storage/TraceableCdnStorageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ final class TraceableCdnStorageTest extends TestCase
#[Test]
public function defaults(): void
{
$decorated = $this->createMock(CdnStorageInterface::class);
$decorated = $this->createStub(CdnStorageInterface::class);
$storage = new TraceableCdnStorage($decorated);

self::assertEmpty($storage->getTraces());
Expand Down Expand Up @@ -244,7 +244,7 @@ public function reset(): void
$filename = 'image.jpg';
$metadata = new CdnFileMetadata('https://a.storyblok.com/f/12345/image.jpg');

$decorated = $this->createMock(CdnStorageInterface::class);
$decorated = $this->createStub(CdnStorageInterface::class);

$storage = new TraceableCdnStorage($decorated);

Expand Down
6 changes: 3 additions & 3 deletions tests/Unit/DataCollector/CdnCollectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ final class CdnCollectorTest extends TestCase
#[Test]
public function defaults(): void
{
$decorated = $this->createMock(CdnStorageInterface::class);
$decorated = $this->createStub(CdnStorageInterface::class);
$storage = new TraceableCdnStorage($decorated);
$collector = new CdnCollector($storage);

Expand Down Expand Up @@ -132,7 +132,7 @@ public function reset(): void
$filename = 'image.jpg';
$metadata = new CdnFileMetadata('https://a.storyblok.com/f/12345/image.jpg');

$decorated = $this->createMock(CdnStorageInterface::class);
$decorated = $this->createStub(CdnStorageInterface::class);

$storage = new TraceableCdnStorage($decorated);
$collector = new CdnCollector($storage);
Expand All @@ -159,7 +159,7 @@ public function storageIsResetAfterLateCollect(): void
$filename = 'image.jpg';
$metadata = new CdnFileMetadata('https://a.storyblok.com/f/12345/image.jpg');

$decorated = $this->createMock(CdnStorageInterface::class);
$decorated = $this->createStub(CdnStorageInterface::class);

$storage = new TraceableCdnStorage($decorated);
$collector = new CdnCollector($storage);
Expand Down