Skip to content

Commit

Permalink
Report full path to archive dump when --destination is passed. (#5821)
Browse files Browse the repository at this point in the history
* Report full path to archive dump when --destination is passed.

* Canonicalize
  • Loading branch information
weitzman authored Nov 25, 2023
1 parent 4c8f3ec commit ccbbecd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Commands/core/ArchiveDumpCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions tests/functional/ArchiveTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit ccbbecd

Please sign in to comment.