コード例 #1
0
ファイル: MysqlTest.php プロジェクト: nemphys/magento2
 public function testRestoreBackup()
 {
     $command = 'mysql ' . $this->_commandPrefix . ' ' . escapeshellarg('schema') . ' < ' . escapeshellarg($this->_varDir . DIRECTORY_SEPARATOR . 'test.sql');
     $this->_model->expects($this->once())->method('_exec')->with($this->equalTo($command));
     $this->_model->restoreBackup('test');
 }