/** * Test verify that theme contains available containers for widget */ public function testAvailableContainers() { $themeToTest = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get('\\Magento\\Theme\\Model\\Theme'); $themeId = $themeToTest->load('Magento/blank', 'code')->getId(); $this->block->setTheme($themeId); $this->assertContains('<option value="before.body.end" >', $this->block->toHtml()); }
/** * Test verify that theme contains available containers for widget */ public function testAvailableContainers() { $design = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get('Magento\\Framework\\View\\DesignInterface'); $this->block->setTheme($design->getDesignTheme()->getId()); $this->assertContains('<option value="before.body.end" >', $this->block->toHtml()); }