We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | public function pageRendererCallsAddJsFooterInlineCode(): void |
||
25 | { |
||
26 | $pageRendererProphecy = $this->getMockBuilder(PageRenderer::class) |
||
27 | ->onlyMethods(['addJsFooterInlineCode']) |
||
28 | ->getMock(); |
||
29 | |||
30 | $pageRendererProphecy->expects(self::once())->method('addJsFooterInlineCode')->with( |
||
31 | 'js-dlf-inline-footer', '$(document).ready(function() {});' |
||
32 | ); |
||
33 | |||
34 | GeneralUtility::setSingletonInstance(PageRenderer::class, $pageRendererProphecy); |
||
35 | |||
36 | $view = new StandaloneView(); |
||
37 | $view->setTemplateSource( |
||
38 | '<html xmlns:kitodo="http://typo3.org/ns/Kitodo/Dlf/ViewHelpers"> |
||
39 | <kitodo:jsFooter inlineCode="$(document).ready(function() {});" /> |
||
40 | </html>' |
||
41 | ); |
||
42 | |||
43 | $view->render(); |
||
44 | } |
||
46 |