Skip to content

Commit 9bd5144

Browse files
committed
fixup! fixup! IBX-6312: View matcher ParentContentType should not throw execption if parent is not available - Added test of logging
1 parent efd8987 commit 9bd5144

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/lib/MVC/Symfony/Controller/Controller/Content/PreviewControllerTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,8 @@ public function testPreviewWithLogMessage(): void
164164
$this->previewHelper->method('getOriginalSiteAccess')->willReturn($siteAccess);
165165
$this->httpKernel->method('handle')->willThrowException(new NotFoundException('Foo Property', 'foobar'));
166166

167-
$this->logger->expects(
168-
self::once()
169-
)
167+
$this->logger
168+
->expects(self::once())
170169
->method('warning')
171170
->with('Location (42) not found or not available in requested language (eng-GB) when loading the preview page');
172171

0 commit comments

Comments
 (0)