Skip to content

Commit 67530b9

Browse files
committed
fixed
1 parent e375826 commit 67530b9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/TestCase/Utility/BackupImportTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

tests/TestCase/Utility/BackupManagerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)