diff --git a/src/MagentoHackathon/Composer/Magento/Deploystrategy/Copy.php b/src/MagentoHackathon/Composer/Magento/Deploystrategy/Copy.php index a80ab489..fa65db7b 100644 --- a/src/MagentoHackathon/Composer/Magento/Deploystrategy/Copy.php +++ b/src/MagentoHackathon/Composer/Magento/Deploystrategy/Copy.php @@ -84,7 +84,9 @@ public function createDelegate($source, $dest) if (is_dir($destPath)) { $destPath .= '/' . basename($sourcePath); } - return copy($sourcePath, $destPath); + copy($sourcePath, $destPath); + $this->addDeployedFile($destPath); + return; } // Copy dir to dir diff --git a/tests/MagentoHackathon/Composer/Magento/Deploystrategy/CopyTest.php b/tests/MagentoHackathon/Composer/Magento/Deploystrategy/CopyTest.php index 1aad13f7..ba3e2c0e 100644 --- a/tests/MagentoHackathon/Composer/Magento/Deploystrategy/CopyTest.php +++ b/tests/MagentoHackathon/Composer/Magento/Deploystrategy/CopyTest.php @@ -92,9 +92,6 @@ public function testDeployedFilesAreStored() $this->strategy->create($sourceRoot, $dest); $this->assertFileExists($testTarget); - $this->strategy->setIsForced(true); - $this->strategy->create($sourceRoot, $dest); - $this->assertFileNotExists(dirname(dirname($testTarget)) . DS . basename($testTarget)); $this->assertSame(