public function assertHintsContain($str) { $config = $this->configurator->asConfig(); ConfigHelper::filterVariants($config, 'JS'); $xsl = $this->configurator->rendering->engine->getXSL($this->configurator->rendering); $generator = new HintGenerator(); $generator->setConfig($config); $generator->setPlugins($this->configurator->plugins); $generator->setXSL($xsl); $this->assertContains($str, $generator->getHints()); }
/** * Generate a HINT object that contains informations about the configuration * * @return string JavaScript Code */ protected function getHints() { $this->hintGenerator->setConfig($this->config); $this->hintGenerator->setPlugins($this->configurator->plugins); $this->hintGenerator->setXSL($this->xsl); return $this->hintGenerator->getHints(); }