File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
dev/tests/integration/testsuite/Magento/Framework/Backup Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -31,22 +31,18 @@ protected function setUp()
31
31
*/
32
32
public function testRollback ()
33
33
{
34
- $ rootDir = Bootstrap::getInstance ()->getAppTempDir ();
34
+ $ rootDir = Bootstrap::getInstance ()->getAppTempDir ()
35
+ . '/rollback_test_ ' . time ();
35
36
$ backupsDir = __DIR__ . '/_files/var/backups ' ;
36
37
$ fileName = 'test.txt ' ;
37
38
39
+ mkdir ($ rootDir );
40
+
38
41
$ this ->filesystem ->setRootDir ($ rootDir )
39
42
->setBackupsDir ($ backupsDir )
40
43
->setTime (1474538269 )
41
44
->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 ' );
50
46
51
47
$ this ->assertTrue ($ this ->filesystem ->rollback ());
52
48
$ this ->assertTrue (file_exists ($ rootDir . '/ ' . $ fileName ));
You can’t perform that action at this time.
0 commit comments