diff --git a/src/Commands/core/ArchiveDumpCommands.php b/src/Commands/core/ArchiveDumpCommands.php index 69135ce4cb..9a1928acc5 100644 --- a/src/Commands/core/ArchiveDumpCommands.php +++ b/src/Commands/core/ArchiveDumpCommands.php @@ -200,7 +200,7 @@ private function createArchiveFile(array $archiveComponents, array $options): st ); $this->filesystem->rename($archivePath, $options['destination']); - return $options['destination']; + return realpath($options['destination']); } /** diff --git a/tests/functional/ArchiveTest.php b/tests/functional/ArchiveTest.php index 9faa8efd88..53ee292844 100644 --- a/tests/functional/ArchiveTest.php +++ b/tests/functional/ArchiveTest.php @@ -47,7 +47,7 @@ public function setUp(): void 'overwrite' => null, ]) ); - $actualArchivePath = $this->getOutput(); + $actualArchivePath = Path::canonicalize($this->getOutput()); $this->assertEquals($this->archivePath, $actualArchivePath); $this->restorePath = Path::join($this->getSandbox(), 'restore'); @@ -105,7 +105,7 @@ public function testArchiveDumpCommand(): void 'overwrite' => null, ]) ); - $actualArchivePath = $this->getOutput(); + $actualArchivePath = Path::canonicalize($this->getOutput()); $this->assertEquals($this->archivePath, $actualArchivePath); // Validate database credentials are present in settings.php file.