From: Dan Brown Date: Wed, 14 May 2025 11:26:25 +0000 (+0100) Subject: Supressed warnings for existing folders in tests X-Git-Url: http://source.bookstackapp.com/system-cli/commitdiff_plain/f1ee02e40713d92c1df1aa039f124ac0ca9079fe Supressed warnings for existing folders in tests --- diff --git a/tests/Commands/DownloadVendorCommandTest.php b/tests/Commands/DownloadVendorCommandTest.php index 20a2fb8..8fc2e55 100644 --- a/tests/Commands/DownloadVendorCommandTest.php +++ b/tests/Commands/DownloadVendorCommandTest.php @@ -11,7 +11,7 @@ class DownloadVendorCommandTest extends TestCase $this->withOwnBookStackFolder(function (string $basePath) { exec("rm -rf $basePath/vendor"); file_put_contents("$basePath/version", 'v25.02'); - mkdir("$basePath/dev/checksums", 0777, true); + @mkdir("$basePath/dev/checksums", 0777, true); file_put_contents("$basePath/dev/checksums/vendor", '22e02ee72d21ff719c1073abbec8302f8e2096ba6d072e133051064ed24b45b1'); $this->assertDirectoryDoesNotExist("$basePath/vendor"); @@ -33,7 +33,7 @@ class DownloadVendorCommandTest extends TestCase exec("rm -rf $basePath/vendor"); file_put_contents("$basePath/version", 'v25.02'); - mkdir("$basePath/dev/checksums", 0777, true); + @mkdir("$basePath/dev/checksums", 0777, true); file_put_contents("$basePath/dev/checksums/vendor", '22e02ee72d21ff719c1073abbec8302f8e2096ba6d072e133051064ed24b45b1'); $this->assertDirectoryDoesNotExist("$basePath/vendor"); @@ -53,7 +53,7 @@ class DownloadVendorCommandTest extends TestCase { $this->withOwnBookStackFolder(function (string $basePath) { file_put_contents("$basePath/version", 'v25.02'); - mkdir("$basePath/dev/checksums", 0777, true); + @mkdir("$basePath/dev/checksums", 0777, true); file_put_contents("$basePath/dev/checksums/vendor", '42e02ee72d21ff719c1073abbec8302f8e2096ba6d072e133051064ed24b45b1'); $result = $this->runCommand('download-vendor'); @@ -70,7 +70,7 @@ class DownloadVendorCommandTest extends TestCase { $this->withOwnBookStackFolder(function (string $basePath) { file_put_contents("$basePath/version", 'v10.02'); - mkdir("$basePath/dev/checksums", 0777, true); + @mkdir("$basePath/dev/checksums", 0777, true); file_put_contents("$basePath/dev/checksums/vendor", 'abc'); $result = $this->runCommand('download-vendor');