public function testConstructorDestructorCleanupRestoreDb() { $this->_db->expects($this->exactly(2))->method('restoreBackup')->with(Magento_Test_Bootstrap::DB_BACKUP_NAME); $this->_callBootstrapConstructor(null, Magento_Test_Bootstrap::CLEANUP_RESTORE_DB); $this->_bootstrap->__destruct(); }