Ejemplo n.º 1
0
 public function testConstructorCleanupRestoreDb()
 {
     $this->_db->expects($this->exactly(1))->method('restoreBackup')->with(Magento_Test_Bootstrap::DB_BACKUP_NAME);
     $this->_callBootstrapConstructor(null, Magento_Test_Bootstrap::CLEANUP_RESTORE_DB);
 }
Ejemplo n.º 2
0
 public function testConstructorCleanupEnabled()
 {
     $this->_db->expects($this->once())->method('cleanup');
     $this->_bootstrap->expects($this->once())->method('_cleanupFilesystem');
     $this->_callBootstrapConstructor(null, true);
 }