Exemple #1
0
 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();
 }
Exemple #2
0
 public function testConstructorCleanupEnabled()
 {
     $this->_db->expects($this->once())->method('cleanup');
     $this->_bootstrap->expects($this->once())->method('_cleanupFilesystem');
     $this->_callBootstrapConstructor(null, true);
 }