private MockObject&SalesChannelContext
$salesChannelContext;
private DownloadRoute
$downloadRoute;
protected function setUp(): void
{ $this->downloadRepository =
$this->
createMock(EntityRepository::
class);
$this->downloadResponseGenerator =
$this->
createMock(DownloadResponseGenerator::
class);
$this->salesChannelContext =
$this->
createMock(SalesChannelContext::
class);
$this->downloadRoute =
new DownloadRoute( $this->downloadRepository,
$this->downloadResponseGenerator
);
} public function testGetDecoratedThrowsException(): void
{ static::
expectException(DecorationPatternException::
class);
$this->downloadRoute->
getDecorated();
}