File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ public function testFilename()
9292 //With invalid extension
9393 $ this ->expectException (InvalidArgumentException::class);
9494 $ this ->expectExceptionMessage ('Invalid file extension ' );
95- file_put_contents (Configure::read ('DatabaseBackup.target ' ) . DS . 'backup.txt ' , null );
95+ create_file (Configure::read ('DatabaseBackup.target ' ) . DS . 'backup.txt ' );
9696 $ this ->BackupImport ->filename ('backup.txt ' );
9797 }
9898
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ public function testDeleteAll()
9595 public function testIndex ()
9696 {
9797 //Creates a text file. This file should be ignored
98- file_put_contents (Configure::read ('DatabaseBackup.target ' ) . DS . 'text.txt ' , null );
98+ create_file (Configure::read ('DatabaseBackup.target ' ) . DS . 'text.txt ' );
9999
100100 $ createdFiles = $ this ->createSomeBackups ();
101101 $ files = $ this ->BackupManager ->index ();
You can’t perform that action at this time.
0 commit comments