Основные методы
Основные методы
Основные методы
Основные методы
/** * @magentoAppIsolation enabled * @magentoAppArea frontend */ public function testDestructor() { $this->_layout->addBlock('Magento\\Framework\\View\\Element\\Text', 'test'); $this->assertNotEmpty($this->_layout->getAllBlocks()); $this->_layout->__destruct(); $this->assertEmpty($this->_layout->getAllBlocks()); }