Skip to content

Commit

Permalink
Fix ViewConfig chain calculation
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Fedurtsya <[email protected]>
  • Loading branch information
Sieg committed Nov 7, 2023
1 parent 1d201e2 commit 2f1156e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Integration/Transition/Core/ViewConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ public function testGetMediaUrl(): void
$imageResourceMock = $this->createMock(ImageResourceInterface::class);
$imageResourceMock->method('getMediaUrl')->with('someFile')->willReturn('someFilePath');

$sut = $this->createPartialMock(ViewConfig::class, ['getService']);
/** @var ViewConfig $sut */
$sut = $this->createPartialMock(oxNew(\OxidEsales\Eshop\Core\ViewConfig::class)::class, ['getService']);
$sut->method('getService')->willReturnMap([
[ImageResourceInterface::class, $imageResourceMock]
]);
Expand Down

0 comments on commit 2f1156e

Please sign in to comment.