public function testConstructorDestructorCleanupUninstall() { $this->_db->expects($this->exactly(2))->method('cleanup'); $this->_bootstrap->expects($this->exactly(2))->method('_cleanupFilesystem'); $this->_callBootstrapConstructor(null, Magento_Test_Bootstrap::CLEANUP_UNINSTALL); $this->_bootstrap->__destruct(); }
public function testConstructorCleanupEnabled() { $this->_db->expects($this->once())->method('cleanup'); $this->_bootstrap->expects($this->once())->method('_cleanupFilesystem'); $this->_callBootstrapConstructor(null, true); }