/** * @magentoDataFixture Magento/Store/_files/core_fixturestore.php * @magentoComponentsDir Magento/Email/Model/_files/design * @magentoAppIsolation enabled * @magentoDbIsolation enabled * @dataProvider inlinecssDirectiveThrowsExceptionWhenMissingParameterDataProvider * * @param string $templateText */ public function testInlinecssDirectiveThrowsExceptionWhenMissingParameter($templateText) { /** @var \Magento\Theme\Model\Theme\Registration $registration */ $registration = $this->objectManager->get('Magento\\Theme\\Model\\Theme\\Registration'); $registration->register(); $this->setUpDesignParams(); $this->model->filter($templateText); }
/** * @magentoDataFixture Magento/Store/_files/core_fixturestore.php * @magentoDataFixture Magento/Email/Model/_files/design/themes.php * @magentoAppIsolation enabled * @dataProvider inlinecssDirectiveThrowsExceptionWhenMissingParameterDataProvider * * @param string $templateText */ public function testInlinecssDirectiveThrowsExceptionWhenMissingParameter($templateText) { $this->setUpDesignParams(); $this->_model->filter($templateText); }