Exemplo n.º 1
0
 /**
  * @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());
 }