Skip to content

Commit a25e326

Browse files
author
Bohdan Korablov
committed
MAGETWO-58523: CLI Rollback doesn't work
1 parent b8d39dd commit a25e326

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

dev/tests/integration/testsuite/Magento/Framework/Backup/FilesystemTest.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,18 @@ protected function setUp()
3131
*/
3232
public function testRollback()
3333
{
34-
$rootDir = Bootstrap::getInstance()->getAppTempDir();
34+
$rootDir = Bootstrap::getInstance()->getAppTempDir()
35+
. '/rollback_test_' . time();
3536
$backupsDir = __DIR__ . '/_files/var/backups';
3637
$fileName = 'test.txt';
3738

39+
mkdir($rootDir);
40+
3841
$this->filesystem->setRootDir($rootDir)
3942
->setBackupsDir($backupsDir)
4043
->setTime(1474538269)
4144
->setName('code')
42-
->setBackupExtension('tgz')
43-
->addIgnorePaths([
44-
$rootDir . '/' . DirectoryList::CONFIG,
45-
$rootDir . '/' . DirectoryList::VAR_DIR,
46-
$rootDir . '/' . DirectoryList::PUB,
47-
$rootDir . '/defaults_extra.cnf',
48-
$rootDir . '/setup_dump_magento_integration_tests.sql',
49-
]);
45+
->setBackupExtension('tgz');
5046

5147
$this->assertTrue($this->filesystem->rollback());
5248
$this->assertTrue(file_exists($rootDir . '/' . $fileName));

0 commit comments

Comments
 (0)