Skip to content

Commit 8aad743

Browse files
committed
Merge pull request #176 from AydinHassan/patch-1
Add deployed file when file to file copy
2 parents 7eb3956 + 9e46842 commit 8aad743

File tree

2 files changed

+3
-4
lines changed
  • src/MagentoHackathon/Composer/Magento/Deploystrategy
  • tests/MagentoHackathon/Composer/Magento/Deploystrategy

2 files changed

+3
-4
lines changed

src/MagentoHackathon/Composer/Magento/Deploystrategy/Copy.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ public function createDelegate($source, $dest)
8484
if (is_dir($destPath)) {
8585
$destPath .= '/' . basename($sourcePath);
8686
}
87-
return copy($sourcePath, $destPath);
87+
copy($sourcePath, $destPath);
88+
$this->addDeployedFile($destPath);
89+
return;
8890
}
8991

9092
// Copy dir to dir

tests/MagentoHackathon/Composer/Magento/Deploystrategy/CopyTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,6 @@ public function testDeployedFilesAreStored()
9292
$this->strategy->create($sourceRoot, $dest);
9393
$this->assertFileExists($testTarget);
9494

95-
$this->strategy->setIsForced(true);
96-
$this->strategy->create($sourceRoot, $dest);
97-
9895
$this->assertFileNotExists(dirname(dirname($testTarget)) . DS . basename($testTarget));
9996

10097
$this->assertSame(

0 commit comments

Comments
 (0)