| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | public function pageRendererCallsAddJsFooterInlineCode(): void |
||
| 34 | { |
||
| 35 | $pageRendererProphecy = $this->getMockBuilder(PageRenderer::class)->disableOriginalConstructor()->getMock(); |
||
| 36 | |||
| 37 | $pageRendererProphecy->expects(self::once())->method('addJsFooterInlineCode')->with( |
||
| 38 | 'js-dlf-inline-footer', '$(document).ready(function() {});' |
||
| 39 | ); |
||
| 40 | |||
| 41 | GeneralUtility::setSingletonInstance(PageRenderer::class, $pageRendererProphecy); |
||
| 42 | |||
| 43 | $view = new StandaloneView(); |
||
| 44 | $view->setTemplateSource( |
||
| 45 | '<html xmlns:kitodo="http://typo3.org/ns/Kitodo/Dlf/ViewHelpers"> |
||
| 46 | <kitodo:jsFooter inlineCode="$(document).ready(function() {});" /> |
||
| 47 | </html>' |
||
| 48 | ); |
||
| 49 | |||
| 50 | $view->render(); |
||
| 51 | } |
||
| 53 |