config = $this->createConfig(); $this->formDisplayTemplate = new FormDisplayTemplate($this->config); } /** * Test for displayInput() */ public function testDisplayInput(): void { $opts = []; $opts['errors'] = ['e1']; $opts['userprefs_allow'] = false; $opts['setvalue'] = ':group'; $opts['doc'] = 'https://example.com/'; $opts['comment'] = 'testComment'; $opts['comment_warning'] = true; $opts['show_restore_default'] = true; $result = $this->formDisplayTemplate->displayInput( 'test/path', 'testName', 'text', 'val', 'desc', false, $opts, ); $this->assertStringContainsString('